# @betafcc/base-converter

> Arbitrary-base number converter

Latest version **0.0.2** (published 2017-05-17) · MIT license · 0 weekly downloads

## Install

```sh
npm install @betafcc/base-converter
pnpm add @betafcc/base-converter
yarn add @betafcc/base-converter
bun add @betafcc/base-converter
```

## Health

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

Positive: no vulnerabilities.

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

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.0.2 |
| Published | 2017-05-17 |
| First published | 2017-05-17 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Beta Faccion |
| Maintainers | betafcc |
| Keywords | utility, base, converter |

## Links

- npm: https://www.npmjs.com/package/@betafcc/base-converter
- Repository: https://github.com/betafcc/base-converter
- Homepage: https://github.com/betafcc/base-converter#readme
- Issues: https://github.com/betafcc/base-converter/issues
- npm.io page: https://npm.io/package/@betafcc/base-converter

## Alternatives

- [flatbuffers](https://npm.io/package/flatbuffers.md) — 6.0M weekly downloads
- [jwt-simple](https://npm.io/package/jwt-simple.md) — 259.5K weekly downloads
- [@exodus/patch-broken-hermes-typed-arrays](https://npm.io/package/@exodus/patch-broken-hermes-typed-arrays.md) — 28.5K weekly downloads
- [@native-to-anchor/buffer-layout](https://npm.io/package/@native-to-anchor/buffer-layout.md) — 12.2K weekly downloads
- [binary-parser-encoder](https://npm.io/package/binary-parser-encoder.md) — 5.3K weekly downloads

## Recent versions

- 0.0.2 (latest) — 2017-05-17
- 0.0.1 — 2017-05-17

## README

# base-converter

An any-base integer converter

Install
-------

    npm install @betafcc/base-converter

Usage
-----

Chosse any `from` and `to` base alphabet

```js
import bc from '@betafcc/base-converter';

const decToBin = bc
    .from('0123456789')
    .to('01')

decToBin('2'); // '10'
```

Really, any base

```js
const toAlpha = bc.to('ABCDEFGHIJKLMNOPQRSTUVWXYZ');

toAlpha.from('0123456789')('100'); // 'DW'
toAlpha.from('0123456789abcdef')('-100'); // '-JW'

```

Non integers and more options support soon

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