z32
Encode & decode z-base32
Last updated 2 years ago by mafintosh .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ gnpm install z32 
SYNC missed versions from official npm registry.

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

Current Tags

  • 1.0.0                                ...           latest (2 years ago)

2 Versions

  • 1.0.0                                ...           2 years ago
  • 0.0.0                                ...           2 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 0
Dependencies (1)
Dev Dependencies (2)
Dependents (1)

Copyright 2013 - present © cnpmjs.org | Home |