UNPKG

ultra-unique-id

Version:

A lightweight and customizable unique ID generator.

18 lines (15 loc) 415 B
export interface UniqueIdOptions { uppercase?: boolean; alphaNumeric?: boolean; } /** * Generates a unique ID with configurable options. * @param length - The length of the generated ID. * @param options - Optional settings for uppercase conversion. * @returns A unique string ID. */ declare function generateUniqueId( length?: number, options?: UniqueIdOptions ): string; export = generateUniqueId;