{"_id":"num-to-words","_rev":"3-69ef2ee8a98c524e1be59cb180627848","name":"num-to-words","description":"converts numbers into English words","dist-tags":{"latest":"0.2.1"},"versions":{"0.1.0":{"name":"num-to-words","version":"0.1.0","description":"converts numbers into English words","main":"lib/index.js","scripts":{"test":"mocha --require babel-polyfill --compilers js:babel-register ","lint":"eslint src/* test/*.js","build":"babel src -d lib"},"repository":{"type":"git","url":"git+https://github.com/ClintonMorrison/num-to-words.git"},"keywords":["numbers","words","utility"],"author":{"name":"Clinton Morrison"},"license":"MIT","bugs":{"url":"https://github.com/ClintonMorrison/num-to-words/issues"},"homepage":"https://github.com/ClintonMorrison/num-to-words#readme","dependencies":{},"devDependencies":{"babel-cli":"^6.24.1","babel-polyfill":"^6.23.0","babel-preset-env":"^1.5.0","babel-preset-es2015":"^6.24.1","babel-register":"^6.24.1","eslint":"^4.17.0","eslint-config-standard":"^10.2.1","eslint-plugin-import":"^2.8.0","eslint-plugin-node":"^5.2.1","eslint-plugin-promise":"^3.6.0","eslint-plugin-standard":"^3.0.1","mocha":"^5.0.0","should":"^13.2.1"},"directories":{"lib":"lib","test":"test"},"gitHead":"39b294202c37aeeb8519ed9bd09dd284754015e8","_id":"num-to-words@0.1.0","_npmVersion":"5.6.0","_nodeVersion":"8.1.4","_npmUser":{"name":"clinton-morrison","email":"clintonmorrison2@gmail.com"},"dist":{"integrity":"sha512-SYJIjcSZXNHCxEdjpvbKTiHw+k3eVH7wp3/93j7jPJjYHG3qB8QYBjUgBF2yOywrCL70oTS8a5r53IAmbwCs/Q==","shasum":"1bb56915f2544005ce22f8452b00d9dd73c10d09","tarball":"https://registry.npmjs.org/num-to-words/-/num-to-words-0.1.0.tgz","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCKJl0yY2/gNjXFeAhSN4/Ht/qlnIaLN/5TuA18cSKFEQIgQhyfC89o41Y7mcksajYKZkZ8DAlcGsPM+unr8GjSwwU="}]},"maintainers":[{"name":"clinton-morrison","email":"clintonmorrison2@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/num-to-words-0.1.0.tgz_1517700397713_0.4099685503169894"}},"0.2.0":{"name":"num-to-words","version":"0.2.0","description":"converts numbers into English words","main":"lib/index.js","scripts":{"test":"mocha --require babel-polyfill --compilers js:babel-register ","lint":"eslint src/* test/*.js","build":"babel src -d lib"},"repository":{"type":"git","url":"git+https://github.com/ClintonMorrison/num-to-words.git"},"keywords":["numbers","words","utility"],"author":{"name":"Clinton Morrison, Emmanuel Guyot"},"license":"MIT","bugs":{"url":"https://github.com/ClintonMorrison/num-to-words/issues"},"homepage":"https://github.com/ClintonMorrison/num-to-words#readme","dependencies":{},"devDependencies":{"babel-cli":"^6.24.1","babel-polyfill":"^6.23.0","babel-preset-env":"^1.5.0","babel-preset-es2015":"^6.24.1","babel-register":"^6.24.1","eslint":"^4.17.0","eslint-config-standard":"^10.2.1","eslint-plugin-import":"^2.8.0","eslint-plugin-node":"^5.2.1","eslint-plugin-promise":"^3.6.0","eslint-plugin-standard":"^3.0.1","mocha":"^5.0.0","should":"^13.2.1"},"directories":{"lib":"lib","test":"test"},"gitHead":"c2c0bc6024d19a096e3d15eefd7731cefba71097","_id":"num-to-words@0.2.0","_nodeVersion":"10.16.0","_npmVersion":"6.9.0","dist":{"integrity":"sha512-HuZBUTH8fKRRf3dYUL7pqgkZ+6lzmIvly2anIMiz9pU98DhUD1xH6hj4i8Si5XS7b99nzsu7PG7krbUjRy7IYg==","shasum":"586871213d2ef91292e7249fa87b3577963f0bf0","tarball":"https://registry.npmjs.org/num-to-words/-/num-to-words-0.2.0.tgz","fileCount":13,"unpackedSize":17450,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdr6TPCRA9TVsSAnZWagAAjgQQAICzKzrJbJEJdAiOQ+mM\n9DZuO8otpNJqSqWb7KoaAUFveyCjAt7GQkXjdng4XR+4PXCiwccmkhP3u21J\nuIzsllWgbf6+0Nzj1vaq4XhNn6Qm/ApFFHpfF8JCOmtAhai8OGmqCyKew28F\n6ronrbdtgJ9WcnkHGw4w+fZkCzi0oY3JxubyZuHoh/MRCw+rf1Dm8XLQ/6as\ns+UHcLWjJ7JcEtbx81vYQuEya/RTckGhIjk+Pablow+yGV32J6LIwtzXvyWU\nRFmg3FHt3kexN+BR6iKbwf6/pfuZINVRLHhUbhXEf4Qzs0bKrWObCu5pqrMK\nDFmR5I3XxyP59i42yy6HGlxpwjlxUK/vRRJi39jLKaPe/B6oqI+YHVsQO7i5\nHaIIVF/lfrm+1McBtKzeGZZ9emyi3Bt29edOWFMi1TQo/YfqzMQDMvh/9EaJ\ngjZwzn6/paPDv9ei2tsmouOHnu1hCzgTzzUKN+KvSO/AhSqGm9CSVlCk14yE\nd3GumMDGX5cNqSblDPYMq6EdwYs1y5/IwVfx/klFexdpyBSC42WDj6Yl+lhB\nuFx3eZuUn98fu0xOqyH2J/3d87t8aWtJ4cfW4RnIPrzeWqhjoKKfrKT4mcD+\ncKGMDaI2sYe6k50Ok4iy7irlsT6AMFA28abK/Ej50EhFZMjvL7DAmxiVVsyL\nBLgy\r\n=WUPC\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCRGWHiBHxkI2iBHx6OZq1vF9Zz+8ybjsSWVpgB3BIrHAIgLy9cVm+LyPc6cL61FJIss5rAfYIapRTx7ndy4O6/Ym0="}]},"maintainers":[{"name":"clinton-morrison","email":"clintonmorrison2@gmail.com"}],"_npmUser":{"name":"clinton-morrison","email":"clintonmorrison2@gmail.com"},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/num-to-words_0.2.0_1571792079278_0.5927944125743405"},"_hasShrinkwrap":false},"0.2.1":{"name":"num-to-words","version":"0.2.1","description":"converts numbers into English words","main":"lib/index.js","scripts":{"test":"mocha --require babel-polyfill --compilers js:babel-register ","lint":"eslint src/* test/*.js","build":"babel src -d lib"},"repository":{"type":"git","url":"git+https://github.com/ClintonMorrison/num-to-words.git"},"keywords":["numbers","words","utility"],"author":{"name":"Clinton Morrison, Emmanuel Guyot"},"license":"MIT","bugs":{"url":"https://github.com/ClintonMorrison/num-to-words/issues"},"homepage":"https://github.com/ClintonMorrison/num-to-words#readme","dependencies":{},"devDependencies":{"babel-cli":"^6.24.1","babel-polyfill":"^6.23.0","babel-preset-env":"^1.5.0","babel-preset-es2015":"^6.24.1","babel-register":"^6.24.1","eslint":"^4.17.0","eslint-config-standard":"^10.2.1","eslint-plugin-import":"^2.8.0","eslint-plugin-node":"^5.2.1","eslint-plugin-promise":"^3.6.0","eslint-plugin-standard":"^3.0.1","mocha":"^5.0.0","should":"^13.2.1"},"directories":{"lib":"lib","test":"test"},"gitHead":"23a91303c9201f7483c913993dca325815e944d5","_id":"num-to-words@0.2.1","_nodeVersion":"10.16.0","_npmVersion":"6.9.0","dist":{"integrity":"sha512-VeftymvvMyVwf7bH49Lrt5dMk9lLX217rmrDBnZCx7dbqalnSDUzmDfQo6y59zSoomOTGP2oxXihM4QJUlJg+g==","shasum":"050e62a2331d8a947f1fc9a41e030f4ec73c4e0c","tarball":"https://registry.npmjs.org/num-to-words/-/num-to-words-0.2.1.tgz","fileCount":13,"unpackedSize":17724,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdu59jCRA9TVsSAnZWagAA8HcP/2eh/zV4CE7rPtVPKRjN\nbfNORSakEZLYYpflXxcUgx2SInh9/wEmGuyHDQAS7p1+1wGdeFtVEq2XY53K\nJdc+SzXriT+TWX4/IE/LEwFOKIObSM/Ocqvf/w7TScUz020t0mBEFhpdxVbi\nokL/uTzVgkhdKTA8E7hI83UoL5u5P8XPsp1fKWCdmeVvzHEcFjvVBr40wWa1\n0uXMfCHX9TLhhlOJSNdDlGRV7u9ki2QTVWBvrOPtUSvys//kmL5hnRNgFsXg\nCQD49fJtgjR6eeoDyuGg+6BFVnfZ70KqIQ7qH6A6TrYeZS/0TmVPiCQ5YqDE\nRZ2t8SfzH13MLBzvDwtAibBcXHuMFzx6vurkVgkyqREYFeQj9m5/loQ/oxS4\nJ/edSNi97xhJYWQzeZ5WtFCIFNk00gibQzq0SC0ogxxabLyoq878AEAqrw9p\nCSZHyZ1jtFemfrgKDjmvRwC6U4zsALzXttxvZxHqYbK49TgkDAV01wUowA93\nWVECnOSQLgl7Zj4GAawRnTS7cyfsqPukYzlyzy7pVA9TkiDe9KQQKn2vsxdC\nXZVYtOnJ65ctPNnM+veDXU95zOlikpzb6drB2pPYv5BZ0vgqhp/zT2uzXjj5\nP1Taabg4DKOjh56FCnniv+oeQXD3p6IwvNIsUE4TjEJ31tCUCJMn6ewladAO\nPjHj\r\n=YoRn\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDH7JRWDWkNTQV1loaw/HTjSknvffjTzxh3HdVe2DMZawIhAOe76xRT3eivb/p0uAFdR6DneW7MyTo7uXS0UnOLDTcP"}]},"maintainers":[{"name":"clinton-morrison","email":"clintonmorrison2@gmail.com"}],"_npmUser":{"name":"clinton-morrison","email":"clintonmorrison2@gmail.com"},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/num-to-words_0.2.1_1572577122999_0.9104108928012637"},"_hasShrinkwrap":false}},"readme":"# numToWords\n## What is this? \nThis library provides a method for converting arbitrary integers into English text. \n\nFor example:\n```\n    -1    ->    \"negative one\"\n     4    ->    \"four\"\n123456    ->    \"one hundred twenty-three thousand four hundred fifty-six\"\n```\n\nAll positive and negative integers are supported. Floating point numbers are rounded to integers\nbefore being converted to words.\n\n## How to use\nInstall this package on npm with:\n```\nnpm install num-to-words\n```\n\n\nTo use this library you need to import the library in your project. For example:\n```javascript\n// es6\nimport numToWords from 'num-to-words';\n\n// require\nconst numToWords = require('num-to-words');\n```\n\nThe function takes a number as a parameter and returns a string of words.\n\n## Examples\n```javascript\nnumToWords(0);      // returns \"zero\"\nnumToWords(10001);  // returns \"ten thousand one\"\nnumToWords(111);    // returns \"one hundred eleven\"\nnumToWords(-77);    // returns \"negative seventy-seven\"\n```\n\n## Additional Options\nFor British English a \"commas\" and \"ands\" parameters are supported. See https://www.mathsisfun.com/numbers/counting-names-1000.html\n\n```\n//\"ten thousand and one\"\nnumToWords(10001, { ands: true, commas: true });\n\n// \"one hundred and eleven\"\nnumToWords(111, { ands: true, commas: true });\n\n// \"one billion, and one\"\nnumToWords(1000000001, { ands: true, commas: true }); \n\n// \"one billion, one\"\nnumToWords(1000000001, { ands: true }); \n\n// \"one billion one\"\nnumToWords(1000000001); \n```\n\n\n## Development\nThis project uses es6 and babel. You can build the project with: `npm run build`\n\nYou can run the tests with: `npm run test`\n\n## Roadmap\nWhile this library works, and is stable, it could use more features! It could potentially someday support:\n- writing numbers in other languages \n- writing numbers as ordinals (e.g. \"3rd\" or \"21st\")\n- writing decimal numbers or fractions\n\nInstead of \"commas\" and \"ands\" options it would ideally support passing a locale.\n","maintainers":[{"name":"clinton-morrison","email":"clintonmorrison2@gmail.com"}],"time":{"modified":"2022-05-11T22:06:16.309Z","created":"2018-02-03T23:26:38.773Z","0.1.0":"2018-02-03T23:26:38.773Z","0.2.0":"2019-10-23T00:54:39.419Z","0.2.1":"2019-11-01T02:58:43.118Z"},"homepage":"https://github.com/ClintonMorrison/num-to-words#readme","keywords":["numbers","words","utility"],"repository":{"type":"git","url":"git+https://github.com/ClintonMorrison/num-to-words.git"},"author":{"name":"Clinton Morrison, Emmanuel Guyot"},"bugs":{"url":"https://github.com/ClintonMorrison/num-to-words/issues"},"license":"MIT","readmeFilename":"README.md"}