UNPKG

@developers-joyride/shortify

Version:

High performance URL shortener library with multi-database support (MongoDB, SQLite, PostgreSQL, MySQL)

10 lines (9 loc) 331 B
/** * Simple URL-safe ID generator that can be used in place of nanoid * to avoid ESM/CJS compatibility issues. */ export declare function generateId(length?: number): string; /** * Generate a customized ID with specific character set */ export declare function customGenerator(alphabet: string, size?: number): () => string;