A universally-unique, lexicographically-sortable, identifier generator
78
A utility that decodes Base32-encoded strings into binary data and compares binary data to verify they match.
@generates
/**
* Decodes a Base32-encoded string into binary data.
*
* @param encoded - The Base32-encoded string to decode
* @returns The decoded binary data as a Uint8Array
*/
export function decodeBase32(encoded: string): Uint8Array;
/**
* Compares two Uint8Array instances to check if they contain identical bytes.
*
* @param a - The first Uint8Array
* @param b - The second Uint8Array
* @returns true if both arrays have the same length and identical bytes, false otherwise
*/
export function compareArrays(a: Uint8Array, b: Uint8Array): boolean;Provides Crockford Base32 encoding and decoding utilities.
@satisfied-by
Install with Tessl CLI
npx tessl i tessl/npm-ulidevals
scenario-1
scenario-2
scenario-3
scenario-4
scenario-5
scenario-6
scenario-7
scenario-8
scenario-9
scenario-10