Package Exports
- bigint-base-converter
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (bigint-base-converter) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
bigint-base-converter
Node package for converting integers between bases. Integers do not have to fit in a javascript native number.
To install:
npm install bigint-base-converterTo import:
var convertBase = require('bigint-base-converter');To use:
convertBase(value, fromBase, toBase)fromBase and toBase may be integers or alphabet strings. If integer, the output/intput will (be/expected to be) an array of numbers in that base. If string, the output/input will (be/expected to be) encoded using the characters in the string as the digits (with the base as the length of the string parameter).