# base-coding

> An implementation of base16, base32 and base64

Latest version **1.0.5** (published 2021-03-28) · MIT license · 0 weekly downloads

## Install

```sh
npm install base-coding
pnpm add base-coding
yarn add base-coding
bun add base-coding
```

## Health

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

Positive: has types; esm support; no vulnerabilities; high quality score.

Warnings: low downloads.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.5 |
| Published | 2021-03-28 |
| First published | 2021-01-02 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Dependencies | 2 |
| Unpacked size | 45.5 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Gabriel Meyer |
| Maintainers | gabothelegend |

## Links

- npm: https://www.npmjs.com/package/base-coding
- Repository: https://github.com/GabrielInTheWorld/base-js
- Homepage: https://github.com/GabrielInTheWorld/base-js#readme
- Issues: https://github.com/GabrielInTheWorld/base-js/issues
- npm.io page: https://npm.io/package/base-coding

## Dependencies (2)

- [tslib](https://npm.io/package/tslib.md) ^2.0.3
- [typescript](https://npm.io/package/typescript.md) ^4.1.3

## Recent versions

- 1.0.5 (latest) — 2021-03-28
- 1.0.3 — 2021-01-03
- 1.0.2 — 2021-01-03
- 1.0.1 — 2021-01-02
- 1.0.0 — 2021-01-02

## README

![CI](https://github.com/GabrielInTheWorld/base-js/workflows/CI/badge.svg)

# An implementation of Base16, Base32 and Base64

This is an implementation of Base16, Base32 and Base64 specified in [RFC 3548](https://tools.ietf.org/html/rfc3548).

## Installation

To install this package, simply run the following command:

`npm install base-coding`

Hint: This package already provides type-definitions.

## Usage

This package exports three namespaces: Base16, Base32 and Base64:

```ts
export namespace Base64 {
  export function encode(toEncode: string): string;
  export function decode(toDecode: string): string;
}

export namespace Base32 {
  export function encode(toEncode: string): string;
  export function decode(toDecode: string): string;
}

export namespace Base16 {
  export function encode(toEncode: string): string;
  export function decode(toDecode: string): string;
}
```

## License

MIT License

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