UNPKG

@qit.tools/number-to-words

Version:

This tiny library (🪶 1.4 KB) converts numbers to English words, supporting both general numeric values and monetary values with customizable currency and minor units.

10 lines (9 loc) • 224 B
type MoneyOptions = { currency: [string, string]; minor?: [string, string]; }; type Options = { money?: MoneyOptions; }; export declare const numberToWords: (num: number, options?: Options) => string; export {};