0.0.43 • Published 2 years ago

to-numeral v0.0.43

Weekly downloads
-
License
MIT
Repository
github
Last release
2 years ago

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

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

Demo

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

Change Log

0.0.42
  • Initial release