zero dependency base32 encoder/decoder based on rfc3548
npm install @distrentic/base32
yarn add @distrentic/base32
import base32 from "@distrenctic/base32";
const encoded = base32.toBase32("test");
console.log(encoded);
// => ORSXG5AA
console.log(base32.fromBase32(encoded).toString());
// => test
-
toBase32(< string | Uint8Array > input) - (string) - Encodes the data in
input
. -
fromBase32(< string > input) - (string) - Decodes the base32 encoded data in
input
.
Licensed under MIT license (LICENSE or http://opensource.org/licenses/MIT)