Skip to content

Latest commit

 

History

History
36 lines (25 loc) · 899 Bytes

README.md

File metadata and controls

36 lines (25 loc) · 899 Bytes

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)