z32

1.1.0 • Public • Published

z32

z-base-32 encoder & decoder

npm install z32

Usage

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

Readme

Keywords

none

Package Sidebar

Install

npm i z32

Weekly Downloads

2,061

Version

1.1.0

License

MIT

Unpacked Size

9.24 kB

Total Files

7

Last publish

Collaborators

  • mafintosh