# base45nt

> A Typescript implementation of the Base45 encoding as described in RFC 9285

Latest version **0.1.2** (published 2023-02-16) · MIT license · 0 weekly downloads

## Install

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

## Health

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

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

Warnings: low downloads; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.1.2 |
| Published | 2023-02-16 |
| First published | 2023-02-16 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Dependencies | 0 |
| Unpacked size | 14 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 1 |
| Author | Santiago Cézar |
| Maintainers | scezar |
| Keywords | base45 |

## Links

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

## Recent versions

- 0.1.2 (latest) — 2023-02-16
- 0.1.1 — 2023-02-16
- 0.1.0 — 2023-02-16

## README

# Base45 NT
A Typescript implementation of the Base45 encoding as described in RFC 9285

## Why?

Most Base45 implementations I found used NodeJS `Buffer`, which is not available in browsers. Also I wanted to try to code my own.

## How?

Use the `decode` and `encode` functions defined in the library. They turn `Uint8Array`s into Base45 encoded `string`s and vice versa

```ts
import { encode, decode } from 'base45nt'

const bytes = new Uint8Array([1, 2, 3])
const base45 = encode(bytes)
console.log(base45) // -> "X5030"
const bytesAgain = decode(base45)
console.log(bytesAgain.toString()) // -> "1,2,3"
```

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