Skip to content

DaxGama/to-numeral

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Converts numbers to words/numerals

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published