decbin

1.0.0 • Public • Published

decbin Build Status

decbin — Decimal to binary. Returns a string containing a binary representation of the given number argument.

Install

$ npm install decbin

Usage

const decbin = require('decbin');

decbin(25);
//=> "11001"

API

decbin(input, [options])

input

Type: number

License

MIT © Dmitry Lebedev

Package Sidebar

Install

npm i decbin

Weekly Downloads

3

Version

1.0.0

License

MIT

Last publish

Collaborators

  • dmitrylebedev