node package manager
Easy sharing. Manage teams and permissions with one click. Create a free org »

number-words

number-words

Build Status npm version

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' 

API

numberWords.convert(number)

number

Type number

Number to convert into words.

License

MIT © André Ruffert