Skip to content

Commit

Permalink
feat(base-n): add BASE32_CROCKFORD preset
Browse files Browse the repository at this point in the history
  • Loading branch information
postspectacular committed Aug 7, 2021
1 parent 0c3f02d commit 7d1cad9
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions packages/base-n/src/32.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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");

0 comments on commit 7d1cad9

Please sign in to comment.