simple-base32
TypeScript icon, indicating that this package has built-in type declarations

1.0.2 • Public • Published

Base32 Encoder/Decoder

Yet another Base32 encoder/decoder with following goals:

  • Actually works
  • Written in TypeScript
  • Simple API (just 2 functions, both work with string arguments)
  • Node.js + Browser compatibility
  • Custom alphabet support
  • Extended character sets support (e.g. correctly encodes emojis back and forth)

Usage

import { encodeBase32, decodeBase32 } from 'simple-base32';

encodeBase32('Hello 👋 👾');                  // jbs025dped2j9emled2j9en8
decodeBase32('jbs025dped2j9emled2j9en8');    // Hello 👋 👾

Readme

Keywords

Package Sidebar

Install

npm i simple-base32

Weekly Downloads

1

Version

1.0.2

License

ISC

Unpacked Size

3.74 kB

Total Files

4

Last publish

Collaborators

  • inca