New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

bhd

Package Overview
Dependencies
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

bhd

BHD Converter

latest
Source
npmnpm
Version
0.1.1
Version published
Maintainers
1
Created
Source

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

Keywords

binary

FAQs

Package last updated on 24 Apr 2016

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts