to-numeral
TypeScript icon, indicating that this package has built-in type declarations

0.0.43 • Public • Published

to-numeral

Converts numbers to words, supports multiple languages

Install

npm install to-numeral

API

toWords(number)

Converts an integer into words. If number is decimal, the decimals will be removed.

import englishNumeral from "to-numeral/dist/lang/english";

englishNumeral.toWords(1234); // “one thausand two hundred and thirty-four”

Languages Supported

Language 1234
English one thausand two hundred and thirty-four
English (Indian) one thausand two hundred and thirty-four
French mille deux cent trente-quatre
Hindi एक हज़ार दो सौ चौंतीस
Gujarati એક હજાર બસો ચોત્રીસ

Demo

https://daxgama.github.io/to-numeral-demo/

Change Log

0.0.42
  • Initial release

Package Sidebar

Install

npm i to-numeral

Weekly Downloads

2

Version

0.0.43

License

MIT

Unpacked Size

55.1 kB

Total Files

34

Last publish

Collaborators

  • daxgama