bhd
BHD converter
Use this, convert numbers from one mode to another.
Install
First, you should install node.js and npm
After that, use npm command: $ npm install bhd
.
Install globally : $ npm install bhd -g
When use as a library
Example:
// new BHD(from, to); var BHD = ; var bhd = 10 2; // convert from decimal to binary. console;
or
// bhd.convert(number, from, to); var BHD = ; var bhd = ; console;
When use at terminal
Example:
$ bhd 10#1024#2 // convert 1024 from decimal to binary.
Test
test use mocha and should.js
$ npm install $ npm test