1.0.2 • Published 2 years ago

simple-base32 v1.0.2

Weekly downloads
-
License
ISC
Repository
github
Last release
2 years ago

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 👋 👾