Skip to content

andreruffert/number-words

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

number-words

CI Status npm version npm

Convert a number into words

Install

$ npm install --save number-words

Usage

const numberWords = require('number-words');

numberWords.convert(42);
//=> 'fourty two'

numberWords.convert(101);
//=> 'one hundred and one'

numberWords.convert(31.41);
//=> 'thirty one'

API

numberWords.convert(number)

number

Type number

Number to convert into words.

License

MIT © André Ruffert