npm install bhdbhd
===
BHD converter
Use this, convert numbers from one mode to another.
------
$ npm install bhd . $ npm install bhd -g ------
javascript
// new BHD(from, to);
var BHD = require('bhd');
var bhd = new BHD(10, 2); // convert from decimal to binary.
console.log(bhd.convert(123));
` or
`javascript
// bhd.convert(number, from, to);
var BHD = require('bhd');
var bhd = new BHD();
console.log(bhd.convert(123, 10, 2));
`$3
Example:
`shell
$ bhd 10#1024#2 // convert 1024 from decimal to binary.
`------
$3
test use ___mocha___ and ___should.js___
`shell
$ npm install
$ npm test
``