UNPKG

@digitalmaas/uuid-base62

Version:
15 lines (12 loc) 563 B
import baseX from 'base-x'; export { default as baseX } from 'base-x'; declare const base62Alphabet = "0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ"; declare const base62: baseX.BaseConverter; type BaseOptions = { encoding?: BufferEncoding; base?: baseX.BaseConverter; length?: boolean | number; }; declare function encode(input: string | number[] | Uint8Array, options?: BaseOptions): any; declare function decode(input: string, options?: BaseOptions): string; export { type BaseOptions, base62, base62Alphabet, decode, encode };