@allex/base64
Version:
Lightweight performance optimized base64 library by Allex
11 lines (8 loc) • 435 B
TypeScript
// Type definitions for @allex/base64
// Project: https://github.com/allex/base64
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
export declare function encode(s: string, uriSafe?: boolean): string;
export declare function decode(base64: string): string;
export declare function encodeURI(s: string): string;
export declare function toUtf8(s: string): Buffer;
export declare function fromUtf8(s: string): Buffer;