UNPKG

codenames

Version:

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

35 lines 766 B
/** * Auto-generated from animals.txt. Do not edit manually. * Run 'bun run scripts/generate.ts animals Animal' to regenerate. * * SPDX-FileCopyrightText: 2025-present Kriasoft * SPDX-License-Identifier: MIT */ import { createTypedCodename } from "../core/factory.js"; export const animals = [ "cat", "dog", "fish", "bird", "cow", "pig", "bee", "ant", "bat", "fly", ]; /** * Converts a number to a Animal codename * * @param input - The number to convert * @returns An Animal name * * @example * ```typescript * import codename from "codenames/animals-10"; * codename(1234) // "cat" * ``` */ export const codename = createTypedCodename(animals); export default codename; //# sourceMappingURL=animals-10.js.map