0.1.1 • Published 8 years ago

bhd v0.1.1

Weekly downloads
3
License
BSD-2-Clause
Repository
github
Last release
8 years ago

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 = require('bhd');
  var bhd = new BHD(10, 2);  // convert from decimal to binary.
  console.log(bhd.convert(123));

or

  // bhd.convert(number, from, to);
  var BHD = require('bhd');
  var bhd = new BHD();
  console.log(bhd.convert(123, 10, 2));

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
0.1.1

8 years ago

0.1.0

8 years ago

0.0.6

10 years ago

0.0.5

10 years ago

0.0.4

10 years ago

0.0.3

10 years ago

0.0.2

10 years ago