bigint-base-converter

0.1.3 • Public • Published

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-converter

To 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).

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 0.1.3
    26,913
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 0.1.3
    26,913
  • 0.1.2
    638
  • 0.1.1
    1
  • 0.1.0
    1

Package Sidebar

Install

npm i bigint-base-converter

Weekly Downloads

26,535

Version

0.1.3

License

none

Unpacked Size

8.81 kB

Total Files

5

Last publish

Collaborators

  • clark800