$ gnpm install z32
z-base-32 encoder & decoder
npm install z32
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!')
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.
MIT
Copyright 2013 - present © cnpmjs.org | Home |