diginext-utils
Version:
README.md
17 lines • 473 B
TypeScript
/**
* Convert number to base-62 (optimized for numbers up to MAX_SAFE_INTEGER)
*/
export declare function toBase62(num: number): string;
/**
* Convert base-62 to number (optimized)
*/
export declare function fromBase62(str: string): number;
/**
* Convert BigInt to base-62
*/
export declare function toBase62Big(num: bigint): string;
/**
* Convert base-62 to BigInt
*/
export declare function fromBase62Big(str: string): bigint;
//# sourceMappingURL=base62.d.ts.map