UNPKG

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, and BigInt. Zero dependencies, fully tested.

18 lines (17 loc) 526 B
export declare const digitMap: { readonly '0': "०"; readonly '1': "१"; readonly '2': "२"; readonly '3': "३"; readonly '4': "४"; readonly '5': "५"; readonly '6': "६"; readonly '7': "७"; readonly '8': "८"; readonly '9': "९"; }; /** * Converts a string of Nepali unicode digits (०-९) to a JavaScript number. * Throws if input is not a valid Nepali digit string or exceeds safe integer. */ export declare const unicodeToEnglishNumber: (numStr: string) => number;