digit-to-words-nepali
Version:
A comprehensive TypeScript library for converting numbers to words in English and Nepali languages. Supports numbers up to 10^39 (Adanta Singhar), currency formatting, decimal handling with individual digit pronunciation, and BigInt. Zero dependencies, fu
11 lines (10 loc) • 345 B
TypeScript
import { WordMapping } from '../types/mappingTypes';
/**
* BASE_NUMBERS
* Maps numbers 0-99 to their English and Nepali word representations.
*/
export declare const BASE_NUMBERS: Map<number, WordMapping>;
/**
* Returns a new Map of the base number word mappings.
*/
export declare function createNumberWordMap(): Map<number, WordMapping>;