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
14 lines (13 loc) • 511 B
TypeScript
import { Language } from '../types/converterTypes';
/**
* Joins an array of words into a single string, removing extra spaces.
*/
export declare function formatWords(words: string[]): string;
/**
* Pads a decimal string to at least 2 digits (e.g., '5' -> '05').
*/
export declare function padDecimal(decimal: string): string;
/**
* Formats a currency amount with the currency name, language-aware.
*/
export declare function formatCurrencyAmount(amount: string, currency: string, lang: Language): string;