dec-to-binary

1.5.1 • Public • Published

dec-to-binary

dec-to-binary is a nodejs package to convert decimal to binary with just one line of code.

Installation

npm i dec-to-binary --save

Usage

Convert with just one line of code

  • Convert decimal numbers into binary with just one line of code. For one of my project, I had to create a tool to convert decimal to binary so, I used Bignumber.js and created one here.

Decimal to Binary conversion:

var decimal = require('dec-to-binary')

console.log(decimal.decimal("10"));

see working

Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

Please make sure to update tests as appropriate.

Package Sidebar

Install

npm i dec-to-binary

Weekly Downloads

58

Version

1.5.1

License

ISC

Unpacked Size

1.72 kB

Total Files

3

Last publish

Collaborators

  • aashaytrivedi