0.0.4 • Published 4 years ago

change-radix v0.0.4

Weekly downloads
4
License
MIT
Repository
github
Last release
4 years ago

change-radix

A module that changes numbers base (docs).

Install (Node.js / Browserify)

npm i --save change-radix

const radix = require('change-radix')

Install (Browser / Workers)

<script src="https://raw.githubusercontent.com/tikhiy/change-radix/master/dist/index.min.js"></script>
radix.parse('Z', 62) // -> 61

The use

radix.convert('78xyXY', 62, 2)
// -> '110000101110000110101101010100110'
radix.radix(5.43e21, 51)
// -> 'hrjOqqmhvwyAO'
radix.parse('hrjOqqmhvwyAO', 51)
// -> 5.43e21

License

Released under the MIT Licence.

0.0.3

4 years ago

0.0.4

4 years ago

0.0.2

6 years ago

0.0.1

6 years ago