# z32

> Encode & decode z-base32

Latest version **1.1.0** (published 2024-03-07) · MIT license · 0 weekly downloads

## Install

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

## Health

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

Positive: no vulnerabilities.

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

Negative: abandoned.

## Facts

| | |
|---|---|
| Version | 1.1.0 |
| Published | 2024-03-07 |
| First published | 2022-06-15 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Unpacked size | 9 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 11 |
| Author | Mathias Buus |
| Maintainers | mafintosh |

## Links

- npm: https://www.npmjs.com/package/z32
- Repository: https://github.com/mafintosh/z32
- Issues: https://github.com/mafintosh/z32/issues
- npm.io page: https://npm.io/package/z32

## Dependencies (1)

- [b4a](https://npm.io/package/b4a.md) ^1.5.3

## Recent versions

- 1.1.0 (latest) — 2024-03-07
- 1.0.1 — 2023-08-21
- 1.0.0 — 2022-06-15
- 0.0.0 — 2022-06-15

## README

# z32

z-base-32 encoder & decoder

```
npm install z32
```

## Usage

``` js
const z32 = require('z32')

const s = z32.encode('Hello, World!')

console.log(s) // jb1sa5dxfoofq551pt1nn

const b = z32.decode(s)

console.log(b) // Buffer('Hello, World!')
```

## API

#### `const s = z32.encode(stringOrBuffer)`

Encode a string or buffer to z-base-32.

#### `const buf = z32.decode(s)`

Returns a decoded buffer. Throws if the string is invalid.

## License

MIT

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