101527 => 'one hundred one thousand five hundred twenty seven' (in JavaScript)
3a462d13 — Ben Burwell 3 years ago
Fix .travis.yml spacing
aee3426e — Ben Burwell 3 years ago
Update .travis.yml with deploy email
a818c401 — Ben Burwell 3 years ago
Remove accidentally committed .swo file

refs

master
browse log

clone

read-only
https://git.sr.ht/~benburwell/itoa
read/write
git@git.sr.ht:~benburwell/itoa

You can also use your local clone with git send-email.

itoa

a javascript library for converting numbers to their names

Build Status npm version

usage

var itoa = require('itoa');
console.log(itoa(42)); // => 'forty two'
console.log(itoa('11233440')); // => 'eleven million two hundred thirty three thousand four hundred forty'

specify true as the second parameter to get an and in there:

console.log(itoa('101')); // => 'one hundred one'
console.log(itoa('101', true)); // => 'one hundred and one'

the number will be parsed with bignumber.js, so you can use whatever format is supported.

supported node versions

each release is tested against the latest patch of every minor version of node.js released since 0.10. see the .travis.yml file for specifics, and be sure to check the latest build results

contributing

bug reports, features requests, and patches are all welcome. create an issue, or fork the repo and make a pull request back from your feature branch.