UNPKG

codenames

Version:

Converts numerical values into human-readable names following a specific theme (e.g., cities)

24 lines 1.19 kB
/** * Auto-generated from adjectives.txt. Do not edit manually. * Run 'bun run scripts/generate.ts adjectives Adjective' to regenerate. * * SPDX-FileCopyrightText: 2025-present Kriasoft * SPDX-License-Identifier: MIT */ export declare const adjectives: readonly ["good", "bad", "big", "small", "new", "old", "hot", "cold", "fast", "slow", "long", "short", "high", "low", "hard", "soft", "dark", "light", "strong", "weak", "happy", "sad", "full", "empty", "rich", "poor", "young", "old", "true", "false"]; export type Adjective = (typeof adjectives)[number]; /** * Converts a number to a Adjective codename * * @param input - The number to convert * @returns An Adjective name * * @example * ```typescript * import codename from "codenames/adjectives-30"; * codename(1234) // "long" * ``` */ export declare const codename: (input: number) => "good" | "bad" | "big" | "small" | "new" | "old" | "hot" | "cold" | "fast" | "slow" | "long" | "short" | "high" | "low" | "hard" | "soft" | "dark" | "light" | "strong" | "weak" | "happy" | "sad" | "full" | "empty" | "rich" | "poor" | "young" | "true" | "false"; export default codename; //# sourceMappingURL=adjectives-30.d.ts.map