codenames
Version:
Converts numerical values into human-readable names following a specific theme (e.g., cities)
24 lines • 1.59 kB
TypeScript
/**
* Auto-generated from emotions.txt. Do not edit manually.
* Run 'bun run scripts/generate.ts emotions Emotion' to regenerate.
*
* SPDX-FileCopyrightText: 2025-present Kriasoft
* SPDX-License-Identifier: MIT
*/
export declare const emotions: readonly ["love", "hate", "joy", "sad", "fear", "mad", "happy", "angry", "glad", "calm", "hurt", "proud", "shame", "hope", "pain", "guilt", "trust", "envy", "grief", "worry", "peace", "shock", "lonely", "brave", "scared", "tired", "eager", "bored", "sorry", "lost", "rage", "panic", "spite", "pride", "care", "pity", "kind", "warm", "cold", "bitter", "tender", "gentle", "cruel", "pleased", "anxious", "nervous", "weary", "jealous", "humble", "shy"];
export type Emotion = (typeof emotions)[number];
/**
* Converts a number to a Emotion codename
*
* @param input - The number to convert
* @returns An Emotion name
*
* @example
* ```typescript
* import codename from "codenames/emotions-50";
* codename(1234) // "peace"
* ```
*/
export declare const codename: (input: number) => "cold" | "happy" | "sad" | "warm" | "brave" | "scared" | "angry" | "calm" | "cruel" | "kind" | "love" | "hate" | "joy" | "fear" | "mad" | "glad" | "hurt" | "proud" | "shame" | "hope" | "pain" | "guilt" | "trust" | "envy" | "grief" | "worry" | "peace" | "shock" | "lonely" | "tired" | "eager" | "bored" | "sorry" | "lost" | "rage" | "panic" | "spite" | "pride" | "care" | "pity" | "bitter" | "tender" | "gentle" | "pleased" | "anxious" | "nervous" | "weary" | "jealous" | "humble" | "shy";
export default codename;
//# sourceMappingURL=emotions-50.d.ts.map