@ivujs/i-utils
Version:
前端模块化 JavaScript 工具库
9 lines (8 loc) • 595 B
TypeScript
export function fromUint8Array(uint8Array: Uint8Array, urlSafe?: boolean): string;
export function toUint8Array(base64Str: string, urlSafe?: boolean): Uint8Array;
export function fromHex(hexStr: string, urlSafe?: boolean): string;
export function toHex(base64Str: string, urlSafe?: boolean): string;
export function encode(data: string | number[] | Uint8Array | ArrayBuffer, urlSafe?: boolean): string;
export function decode(base64Str: string): string;
export function encodeURI(data: string | number[] | Uint8Array | ArrayBuffer): string;
export function decodeURI(base64Str: string): string;