amount-in-words-global
Version:
Convert amount in words with most global currency
23 lines (22 loc) • 587 B
TypeScript
export declare enum CountryCodes {
IND = "IND",
USA = "USA",
GBR = "GBR",
NGR = "NGR",
GH = "GH",
CFA = "CFA",
EURO = "EURO"
}
export declare class AmountToWords {
private words1To19;
private wordsTens;
private wordsBig;
/**
* Ifelere: Naira does not not have an 's' for plural therefore this map is adjusted to have currencies declare plural form
*/
private curCodes;
toWords: (amount: string | number, countryCode?: string) => string;
private getNumSys;
private convertToWords;
private convertDecimalToWords;
}