3.0.0 • Published 4 years ago

base-conv v3.0.0

Weekly downloads
14
License
ISC
Repository
github
Last release
4 years ago

radix conversion

npm version build status coverage status

  • default alphabet is '0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ-_' for input and output
  • you can change it by passing different alphabets to the BaseConv exported function
  • no IEEE-754 limitation

usage:

const conv = require('base-conv').default;
conv(42, 10, 16) // '2a'
conv('42', 10, 16) // '2a'
conv('42'.repeat(100), 10, 16) // '8de2991df40ff783057818d0012f3bc1c...'
3.0.0

4 years ago

3.0.0-1

4 years ago

2.0.1

5 years ago

2.0.0

5 years ago

1.3.0

6 years ago

1.2.2

6 years ago

1.2.1

6 years ago

1.2.0

6 years ago

1.1.0

6 years ago

1.0.1

6 years ago

1.0.0

6 years ago