@waiting/base64
Version:
Base64 encoding/decoding in pure JS on both modern Browsers and Node.js. Also supports URL-safe base64
9 lines (8 loc) • 544 B
TypeScript
/// <reference types="node" />
import { TextDecoder as NodeTextDecoder, TextEncoder as NodeTextEncoder } from 'util';
export declare type BrowserTextEncoderType = typeof TextEncoder;
export declare type BrowserTextDecoderType = typeof TextDecoder;
export declare type NodeTextEncoderType = typeof NodeTextEncoder;
export declare type NodeTextDecoderType = typeof NodeTextDecoder;
export declare type TextEncoderFn = BrowserTextEncoderType | NodeTextEncoderType;
export declare type TextDecoderFn = BrowserTextDecoderType | NodeTextDecoderType;