number-words
v1.1.1
Published
Convert a number into words
Downloads
598
Readme
number-words
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