codenames
Version:
Converts numerical values into human-readable names following a specific theme (e.g., cities)
35 lines • 789 B
JavaScript
/**
* Auto-generated from clothing.txt. Do not edit manually.
* Run 'bun run scripts/generate.ts clothing Clothing' to regenerate.
*
* SPDX-FileCopyrightText: 2025-present Kriasoft
* SPDX-License-Identifier: MIT
*/
import { createTypedCodename } from "../core/factory.js";
export const clothing = [
"shirt",
"jeans",
"shoe",
"hat",
"sock",
"dress",
"coat",
"belt",
"tie",
"pants",
];
/**
* Converts a number to a Clothing codename
*
* @param input - The number to convert
* @returns A Clothing name
*
* @example
* ```typescript
* import codename from "codenames/clothing-10";
* codename(1234) // "shirt"
* ```
*/
export const codename = createTypedCodename(clothing);
export default codename;
//# sourceMappingURL=clothing-10.js.map