@control/base32
v0.0.1
Published
<h1 align="center">Base 32 Encoder</h1>
Downloads
2
Readme
[!IMPORTANT]
As of today (2024-07-14) this lib only supports Crockford's alphabet and JavaScript implementations
Usage
const { CrockfordB32Encoder } = require('@control/b32');
const something = 'this is something to encode';
const to_encode = Buffer.from(something);
const encoded = CrockfordB32Encoder.encode(to_encode);
const decoded = CrockfordB32Encoder.decode(encoded);
console.assert(decoded === something);