@waiting/base64
Version:
Base64 encoding/decoding in pure JS on both modern Browsers and Node.js. Also supports URL-safe base64
22 lines (21 loc) • 724 B
TypeScript
export declare const baseChars = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";
export declare const lookup: string[];
export declare const revLookup: number[];
export declare const ErrMsg: {
base64Invalidlength: string;
base64InvalidEqualPosition: string;
encodeInvalidParam: string;
fromArrayBufferInvalidParam: string;
notString: string;
notValidB64String: string;
notValidB64URLString: string;
notValidB64Length: string;
notValidB64URLLength: string;
startMustGrossOrEqualToEnd: string;
startMustGrossToEnd: string;
textEncoderUndefined: string;
textDecoderUndefined: string;
};
export declare const defaultConfig: {
forceBrowser: boolean;
};