@voken/base32
Version:
VOKEN Flavored Base32 Encoding and Decoding, with the checksum by default.
13 lines (10 loc) • 389 B
TypeScript
/// <reference types="node" />
export declare function encode(input: Buffer | number[] | Uint8Array): String;
export declare function decode(input: String): Buffer;
export declare function isChecksum(input: String): Boolean;
export declare class InvalidCharacterError extends Error {
code: String
}
export declare class InvalidChecksum extends Error {
code: String
}