codenames
Version:
Converts numerical values into human-readable names following a specific theme (e.g., cities)
24 lines • 1.53 kB
TypeScript
/**
* 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", "right", "wrong", "clean", "dirty", "wet", "dry", "safe", "deep", "wide", "easy", "nice", "real", "free", "best", "warm", "cool", "loud", "quiet", "sick", "dead"];
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-50";
* codename(1234) // "happy"
* ```
*/
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" | "right" | "wrong" | "clean" | "dirty" | "wet" | "dry" | "safe" | "deep" | "wide" | "easy" | "nice" | "real" | "free" | "best" | "warm" | "cool" | "loud" | "quiet" | "sick" | "dead";
export default codename;
//# sourceMappingURL=adjectives-50.d.ts.map