1.0.3 • Published 9 years ago

numword v1.0.3

Weekly downloads
3
License
MIT
Repository
github
Last release
9 years ago

Numword Build Status

Convert numbers to words!

$ npm install numword

Example

var numword = require('numword');

console.log(numword(123456789));
//one hundred twenty three million four hundred fifty six thousand seven hundred eighty nine

console.log(numword('987654321'));
//nine hundred eighty seven million six hundred fifty four thousand three hundred twenty one

It also works for very very large numbers, but only when passed as a string!

var numword = require('numword');

console.log(numword('123456789012345678901234567890'));
//one hundred twenty three octillion four hundred fifty six septillion seven hundred eighty nine sextillion twelve quintillion three hundred forty five quadrillion six hundred seventy eight trillion nine hundred one billion two hundred thirty four million five hundred sixty seven thousand eight hundred ninety