This is an implementation of Base16, Base32 and Base64 specified in RFC 3548.
To install this package, simply run the following command:
npm install base-coding
Hint: This package already provides type-definitions.
This package exports three namespaces: Base16, Base32 and Base64:
export namespace Base64 {
export function encode(toEncode: string): string;
export function decode(toDecode: string): string;
}
export namespace Base32 {
export function encode(toEncode: string): string;
export function decode(toDecode: string): string;
}
export namespace Base16 {
export function encode(toEncode: string): string;
export function decode(toDecode: string): string;
}
MIT License