UNPKG

codenames

Version:

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

131 lines (125 loc) 1.77 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 */ import { createTypedCodename } from "../core/factory.js"; export const adjectives = [ "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", "late", "early", "thick", "thin", "smart", "dumb", "sweet", "sour", "heavy", "flat", "round", "sharp", "dull", "rough", "smooth", "brave", "scared", "bright", "dim", "clear", "fuzzy", "fresh", "stale", "plain", "fancy", "simple", "busy", "lazy", "wild", "tame", "angry", "calm", "cruel", "kind", "pretty", "ugly", "useful", "useless", "normal", "weird", "modern", "ancient", "famous", "unknown", "perfect", "flawed", "rare", "common", "narrow", "broad", ] as const; 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-100"; * codename(1234) // "fuzzy" * ``` */ export const codename = createTypedCodename(adjectives); export default codename;