Skip to content

januswel/base32

Repository files navigation

hex to/from Base32 v1.0.2 test badge

compliant with RFC4648

Usage

CLI

npx @januswel/base32 encode 1234567890abcdef
npx @januswel/base32 decode CI2FM6EQVPG66===

JavaScript

const { encoded, decoded } = require('@januswel/base32')

const encoded = encode('1234567890abcdef')
const decoded = decode('CI2FM6EQVPG66===')

TypeScript

import { encode, decode } from '@januswel/base32'

const encoded = encode('1234567890abcdef')
const decoded = decode('CI2FM6EQVPG66===')