# binarifyit

> Transform integer into specified size binary

Latest version **1.0.2** (published 2019-07-05) · MIT license · 0 weekly downloads

## Install

```sh
npm install binarifyit
pnpm add binarifyit
yarn add binarifyit
bun add binarifyit
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.2 |
| Published | 2019-07-05 |
| First published | 2018-04-23 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 2.5 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | David Daza |
| Maintainers | ddazal |
| Keywords | binary |

## Links

- npm: https://www.npmjs.com/package/binarifyit
- Repository: https://github.com/ddazal/binarifyit
- Homepage: https://github.com/ddazal/binarifyit#readme
- Issues: https://github.com/ddazal/binarifyit/issues
- npm.io page: https://npm.io/package/binarifyit

## Recent versions

- 1.0.2 (latest) — 2019-07-05
- 1.0.1 — 2018-04-23
- 1.0.0 — 2018-04-23

## README

# binarify

Transform an integer into its binary form with the desire number of bits. 

## Install

`npm i binarifyit`

## Usage
The function receives two arguments:  `number` and `bits`. The former is the number you want to transform while the latter is the number of bits you want.

If the `bits` parameter is not specified, the transform will return the default number of bits.

```js
const binarifyit = require('binaryfyit')

console.log(binarifyit(5)) // 101
console.log(binarifyit(5,6)) // 000101
```
## Licence
MIT

---
_Source: https://npm.io/package/binarifyit · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
