z32

1.0.1 • 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,072

Version

1.0.1

License

MIT

Unpacked Size

9.21 kB

Total Files

7

Last publish

Collaborators

  • mafintosh