Skip to content

js module to convert numbers to words

License

Notifications You must be signed in to change notification settings

rivamarco/n2words

 
 

Repository files navigation

n2words

Build Status Coverage Status npm

Convert numbers to words

Install

npm install --save n2words

Usage

var n2words = require('n2words')

n2words(123)                 // 'one hundred and twenty-three'

n2words(123, {lang: 'en'})   // 'one hundred and twenty-three'
n2words(123, {lang: 'fr'})   // 'cent vingt-trois'
n2words(123, {lang: 'es'})   // 'ciento veintitrés'

Supported Languages:

  • en (English, default)
  • de (German)
  • es (Spanish)
  • fr (French)
  • it (Italian)
  • pt (Portuguese)
  • tr (Turkish)

About

js module to convert numbers to words

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 100.0%