From 7d1cad9430746efe80cd70482906b6f03b262d8a Mon Sep 17 00:00:00 2001 From: Karsten Schmidt Date: Sat, 7 Aug 2021 15:53:48 +0200 Subject: [PATCH] feat(base-n): add BASE32_CROCKFORD preset --- packages/base-n/src/32.ts | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/packages/base-n/src/32.ts b/packages/base-n/src/32.ts index 0a2e131451..c586fb8016 100644 --- a/packages/base-n/src/32.ts +++ b/packages/base-n/src/32.ts @@ -15,3 +15,11 @@ export const BASE32_RFC4648 = defBase("ABCDEFGHIJKLMNOPQRSTUVWXYZ234567"); * Reference: https://en.wikipedia.org/wiki/Base32#base32hex */ export const BASE32_HEX = defBase("0123456789ABCDEFGHIJKLMNOPQRSTUV"); + +/** + * Digits: 0-9 A-Z (excl. I,L,O,U) + * + * @remarks + * Reference: https://en.wikipedia.org/wiki/Base32#Crockford's_Base32 + */ +export const BASE32_CROCKFORD = defBase("0123456789ABCDEFGHJKMNPQRSTVWXYZ");