Skip to content

v0.0.4

Latest
Compare
Choose a tag to compare
@ashtrindade ashtrindade released this 29 May 23:07
· 2 commits to main since this release

Features

Convenience Functions

import { Base32 } from '@lunacrew/base32';

const encoded = Base32.encode('Hello World!');
console.log(encoded); // JBSWY3DPEBLW64TMMQQQAA==

const decoded = Base32.decode(encoded);
console.log(decoded); // Hello World!

Class Interface

import { Encoder, Decoder } from '@lunacrew/base32';

const encoder = new Encoder();
const encoded = encoder.encode('Hello World!');
console.log(encoded); // JBSWY3DPEBLW64TMMQQQAA==

const decoder = new Decoder();
const decoded = decoder.decode(encoded);
console.log(decoded); // Hello World!

Changelog

Full Changelog: https://github.com/LunaCrew/base32/commits/v0.0.4