UNPKG

@types/project-name-generator

Version:
33 lines (30 loc) 990 B
/** * Generate quirky names like spiffy-waterfall, sassy-bread, mature-dew-8239 to use wherever you need a random but memorable name. */ declare function generate(options?: generate.Options): generate.Project; declare namespace generate { interface Options { /** * Number of words generated (excluding number). * All words will be adjectives, except the last one which will be a noun * @default 2 */ words?: number | undefined; /** * Whether a numeric suffix is generated or not. The number is between 1 - 9999, both inclusive. * @default false */ number?: boolean | undefined; /** * Whether to output words beginning with the same letter or not * @default false */ alliterative?: boolean | undefined; } interface Project { raw: Array<string | number>; dashed: string; spaced: string; } } export = generate;