radics

0.1.0 • Public • Published

radics NPM version Build Status Dependency Status

Converts numbers between different bases even between custom radix.

Install

$ npm install radics --save

Usage

var radics = require('radics');
radics('FF').from(16).to(10); // '255'
radics('FF').from('0123456789ABCDEF').to('0123456789'); // '255'
radics('FF').from(''); 

.from(base)

  • base
    • String your custom radix base
    • Number number system

Define the base of the "number".

.to(base)

Converts to the destination radix system, and always returns String.

Licence

MIT

Package Sidebar

Install

npm i radics

Weekly Downloads

2

Version

0.1.0

License

MIT

Last publish

Collaborators

  • kael