Skip to content

adisaf/numbers2words

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

28 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Numbers to Words (JavaScript)

Original project : https://github.com/Kibo/numbers2words/ It converts a numeric value to words.

You can use it as standalone js library or as Node module.

##Example

var translator = new T2W("FR_FR");
// mille deux cent et trente-quatre
translator.toWords(1234)

##Now available locales
 - fr_FR	(0...999999999)

  • en_US (0...999999999)
  • cs_CZ (0...999999999)

Locale object The locale object must implement method translate.

/**
 * Translate numbers to words
 * @public
 * @param {array} numbers
 * @param {number} index
 * @return {string}
 */
translate( numbers, index){
 // implement it
};

About

JavaScript numbers to words converter

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 73.2%
  • HTML 26.8%