{"_id":"number-formatter","_rev":"8-c7daec09df596b433f623ff93317a36b","name":"number-formatter","description":"Lightweight & Fast JavaScript Number Formatter","dist-tags":{"latest":"1.2.0"},"versions":{"1.1.5":{"name":"number-formatter","nick":"number-formatter","description":"Lightweight & Fast JavaScript Number Formatter","version":"1.1.5","homepage":"http://mottie.github.com/javascript-number-formatter/","main":"lib/format.min.js","demo":"https://github.com/Mottie/javascript-number-formatter/index.html","repository":{"type":"git","url":"git://github.com/j-/number-formatter.git"},"author":{"name":"KPL","url":"https://code.google.com/u/100789773228459308870/"},"maintainers":[{"name":"j-","email":"jh@live.com.au"}],"contributors":[{"name":"Jamie Hoeks","email":"j@skeoh.com"}],"licenses":[{"type":"MIT","url":"http://www.opensource.org/licenses/mit-license.php"},{"type":"GPL","url":"http://www.gnu.org/licenses/old-licenses/gpl-2.0.html"}],"bugs":{"url":"https://github.com/j-/number-formatter/issues"},"docs":"http://mottie.github.com/javascript-number-formatter/index.html","keywords":["number","format","formatter","currency"],"files":["src/format.js"],"scripts":{"test":"grunt test"},"devDependencies":{"grunt":"^0.4.5","grunt-cli":"^0.1.13","grunt-contrib-clean":"^0.6.0","grunt-contrib-concat":"^0.5.0","grunt-contrib-jshint":"^0.11.0","grunt-contrib-qunit":"^0.5.2","grunt-contrib-uglify":"^0.7.0","grunt-contrib-watch":"^0.6.1"},"gitHead":"76446fdd6b2e9aba175019dd26644b062294fff4","_id":"number-formatter@1.1.5","_shasum":"84e8e0812a24aebb850839e1509b1f35f356a7ba","_from":".","_npmVersion":"1.4.28","_npmUser":{"name":"j-","email":"jh@live.com.au"},"dist":{"shasum":"84e8e0812a24aebb850839e1509b1f35f356a7ba","tarball":"https://registry.npmjs.org/number-formatter/-/number-formatter-1.1.5.tgz","integrity":"sha512-paa4T7SV4FJ1A29x1jb2T8H+da80CssJuRHuzcRqI4AzYpAuml1zk9T3HxCQpEfMfRu3z4p04oftce1dS+xd2Q==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCZFwmv5k6z9hEFrcWcOa6XduFkFlTUIh+gYbN4pmDXRAIhALzuiozSJDBhWvWlZAYzbqErxZrOmxzWbywaBDJNWegv"}]}},"1.1.6":{"name":"number-formatter","nick":"number-formatter","description":"Lightweight & Fast JavaScript Number Formatter","version":"1.1.6","homepage":"http://mottie.github.com/javascript-number-formatter/","main":"lib/format.min.js","demo":"https://github.com/Mottie/javascript-number-formatter/index.html","repository":{"type":"git","url":"git://github.com/j-/number-formatter.git"},"author":{"name":"KPL","url":"https://code.google.com/u/100789773228459308870/"},"maintainers":[{"name":"j-","email":"jh@live.com.au"}],"contributors":[{"name":"Jamie Hoeks","email":"j@skeoh.com"}],"licenses":[{"type":"MIT","url":"http://www.opensource.org/licenses/mit-license.php"},{"type":"GPL","url":"http://www.gnu.org/licenses/old-licenses/gpl-2.0.html"}],"bugs":{"url":"https://github.com/j-/number-formatter/issues"},"docs":"http://mottie.github.com/javascript-number-formatter/index.html","keywords":["number","format","formatter","currency"],"files":["src/format.js"],"scripts":{"test":"grunt test"},"devDependencies":{"grunt":"^0.4.5","grunt-cli":"^0.1.13","grunt-contrib-clean":"^0.6.0","grunt-contrib-concat":"^0.5.0","grunt-contrib-jshint":"^0.11.0","grunt-contrib-qunit":"^0.5.2","grunt-contrib-uglify":"^0.7.0","grunt-contrib-watch":"^0.6.1"},"gitHead":"3d5e9961b5a8b6040e278ceb9da2207c3affb236","_id":"number-formatter@1.1.6","_shasum":"84636f1466eaa797dd9a9e9f37ace95848d777de","_from":".","_npmVersion":"1.4.28","_npmUser":{"name":"j-","email":"jh@live.com.au"},"dist":{"shasum":"84636f1466eaa797dd9a9e9f37ace95848d777de","tarball":"https://registry.npmjs.org/number-formatter/-/number-formatter-1.1.6.tgz","integrity":"sha512-momKn1pHZpw+PLYUe/fO5mZxHuAMurkjE2Rc/M6S5KtUJxRNvRcAbrtYaQl0Qm2lsuKA4Fz0o0W+Jk5WuAQAmw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDIzywpzMhynzFoo6qDDEbsDsipVvzIedKu2We2kXju8AIgT4zwEw9o+Z/bGJJE3wOOEZND/lkYX9EETNREDJonjkA="}]}},"1.1.7":{"name":"number-formatter","nick":"number-formatter","description":"Lightweight & Fast JavaScript Number Formatter","version":"1.1.7","homepage":"http://mottie.github.com/javascript-number-formatter/","main":"lib/format.min.js","demo":"https://github.com/Mottie/javascript-number-formatter/index.html","repository":{"type":"git","url":"git://github.com/j-/number-formatter.git"},"author":{"name":"KPL","url":"https://code.google.com/u/100789773228459308870/"},"maintainers":[{"name":"j-","email":"jh@live.com.au"}],"contributors":[{"name":"Jamie Hoeks","email":"j@skeoh.com"}],"licenses":[{"type":"MIT","url":"http://www.opensource.org/licenses/mit-license.php"},{"type":"GPL","url":"http://www.gnu.org/licenses/old-licenses/gpl-2.0.html"}],"bugs":{"url":"https://github.com/j-/number-formatter/issues"},"docs":"http://mottie.github.com/javascript-number-formatter/index.html","keywords":["number","format","formatter","currency"],"files":["lib/format.js"],"scripts":{"test":"grunt test"},"devDependencies":{"grunt":"^0.4.5","grunt-cli":"^0.1.13","grunt-contrib-clean":"^0.6.0","grunt-contrib-concat":"^0.5.0","grunt-contrib-jshint":"^0.11.0","grunt-contrib-qunit":"^0.5.2","grunt-contrib-uglify":"^0.7.0","grunt-contrib-watch":"^0.6.1"},"gitHead":"9f67192eafd869a5b2d4fa012f774f888311e6de","_id":"number-formatter@1.1.7","_shasum":"d4dcc068f1064eb275748855348d5a1fc769568b","_from":".","_npmVersion":"1.4.28","_npmUser":{"name":"j-","email":"jh@live.com.au"},"dist":{"shasum":"d4dcc068f1064eb275748855348d5a1fc769568b","tarball":"https://registry.npmjs.org/number-formatter/-/number-formatter-1.1.7.tgz","integrity":"sha512-opIIKaTm7j+z5R1umERa2LO8aMdmU5fC8VCzX4LtksCaHwsREQy8GnHIOne40vQ1H8a2LbuZQ/Z3Bed6NoSbaQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDDMUEXHm0HCs6wzX0znEoeYPheGc4j1euIEVl1kjMOigIhAKW+MiAZ6DTczseAeGqYmRkzUxX0muIVZ9DWwJyslyYw"}]}},"1.1.8":{"name":"number-formatter","nick":"number-formatter","description":"Lightweight & Fast JavaScript Number Formatter","version":"1.1.8","homepage":"http://mottie.github.com/javascript-number-formatter/","main":"lib/format.min.js","demo":"https://github.com/Mottie/javascript-number-formatter/index.html","repository":{"type":"git","url":"git://github.com/j-/number-formatter.git"},"author":{"name":"KPL","url":"https://code.google.com/u/100789773228459308870/"},"maintainers":[{"name":"j-","email":"jh@live.com.au"}],"contributors":[{"name":"Jamie Hoeks","email":"j@skeoh.com"}],"licenses":[{"type":"MIT","url":"http://www.opensource.org/licenses/mit-license.php"},{"type":"GPL","url":"http://www.gnu.org/licenses/old-licenses/gpl-2.0.html"}],"bugs":{"url":"https://github.com/j-/number-formatter/issues"},"docs":"http://mottie.github.com/javascript-number-formatter/index.html","keywords":["number","format","formatter","currency"],"files":["lib/format.js"],"scripts":{"test":"grunt test"},"devDependencies":{"grunt":"^0.4.5","grunt-cli":"^0.1.13","grunt-contrib-clean":"^0.6.0","grunt-contrib-concat":"^0.5.0","grunt-contrib-jshint":"^0.11.0","grunt-contrib-qunit":"^0.5.2","grunt-contrib-uglify":"^0.7.0","grunt-contrib-watch":"^0.6.1"},"gitHead":"01d45ffdb3497d01137996f2ad3c6f13c2c165b6","_id":"number-formatter@1.1.8","_shasum":"c49a3fb040be095ca9af9276b481816cf18705a2","_from":".","_npmVersion":"1.4.28","_npmUser":{"name":"j-","email":"jh@live.com.au"},"dist":{"shasum":"c49a3fb040be095ca9af9276b481816cf18705a2","tarball":"https://registry.npmjs.org/number-formatter/-/number-formatter-1.1.8.tgz","integrity":"sha512-7abNpSDk9PvmUE3/Wc6WWWBb/+BdoAJLqan0E8HYfSaKSjbXx5RkEVFOvcjigr1lrcF01EehvP2t74tC+/Hs2Q==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDn6rjqQsic3Oc5OKZIvMsSJF5weOrGONGKxF3E08VpYwIgTFzXMaNs7XuaOVns9Jliv1FMX81r46V+CLLWeqnhHw0="}]}},"1.2.0":{"name":"number-formatter","nick":"number-formatter","description":"Lightweight & Fast JavaScript Number Formatter","version":"1.2.0","homepage":"http://mottie.github.com/javascript-number-formatter/","main":"lib/format.js","demo":"https://github.com/Mottie/javascript-number-formatter/index.html","repository":{"type":"git","url":"git://github.com/j-/number-formatter.git"},"author":{"name":"KPL","url":"https://code.google.com/u/100789773228459308870/"},"maintainers":[{"name":"j-","email":"jh@live.com.au"}],"contributors":[{"name":"Jamie Hoeks","email":"j@skeoh.com"}],"licenses":[{"type":"MIT","url":"http://www.opensource.org/licenses/mit-license.php"},{"type":"GPL","url":"http://www.gnu.org/licenses/old-licenses/gpl-2.0.html"}],"bugs":{"url":"https://github.com/j-/number-formatter/issues"},"docs":"http://mottie.github.com/javascript-number-formatter/index.html","keywords":["number","format","formatter","currency"],"files":["lib/format.js"],"scripts":{"test":"grunt test"},"devDependencies":{"grunt":"^0.4.5","grunt-cli":"^0.1.13","grunt-contrib-clean":"^0.6.0","grunt-contrib-concat":"^0.5.0","grunt-contrib-jshint":"^0.11.0","grunt-contrib-qunit":"^0.5.2","grunt-contrib-uglify":"^0.7.0","grunt-contrib-watch":"^0.6.1"},"gitHead":"a08603b1fdf439e3f39de4ff24adf84571a99c1a","_id":"number-formatter@1.2.0","_shasum":"1cf99f371fee627be9f5f12fdac79ecb31b88a0f","_from":".","_npmVersion":"3.5.3","_nodeVersion":"5.4.1","_npmUser":{"name":"j-","email":"jh@live.com.au"},"dist":{"shasum":"1cf99f371fee627be9f5f12fdac79ecb31b88a0f","tarball":"https://registry.npmjs.org/number-formatter/-/number-formatter-1.2.0.tgz","integrity":"sha512-o4wuRhqtPhx/K6lsYdzvOZob0aIQXc6kpO1wufUQI1Em3ctBLU4qMeQ4OWhkMC63Emo1GN1yJ7sEcsdIqc+Mbg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIBd7VnIOrlqNTFA3ITtJA6Yp3hcwO9jIvDIoDYBAG3eFAiEA7Ut5xEhBKrNN2Mm2tv7D9VN9QK4TgNA0EL1ZMTNPVVI="}]},"_npmOperationalInternal":{"host":"packages-9-west.internal.npmjs.com","tmp":"tmp/number-formatter-1.2.0.tgz_1454645480464_0.8135647086892277"}}},"readme":"# Javascript Number Formatter\n\nLightweight & Fast JavaScript Number Formatter\n\n[![Build Status](https://travis-ci.org/j-/number-formatter.png?branch=master)](https://travis-ci.org/j-/number-formatter)\n\n## Introduction\n\nThis standalone number formatter is intended to be short and fast. As they are the main factors for a high performance JavaScript app. Development release is as short as < 120 lines including license info, blank lines and comments. And production release is less than 1,200 bytes.\n\n```js\nnumberFormatter( \"#,##0.####\", 1234567.890 );  // output: \"1,234,567.89\"\nnumberFormatter( \"$ #,###.00\", -1234567.890 ); // output: \"$ -1,234,567.89\"\n```\n\n## Features\n\n* Short, fast, flexible yet standalone.\n* Accept standard number formatting like `#,##0.00` or with negation `-000.####`.\n* Accept any country format like `# ##0,00`, `#,###.##`, `#'###.##` or any type of non-numbering symbol.\n* Accept any numbers of digit grouping. `#,##,#0.000` or `#,###0.##` are all valid.\n* Accept any redundant/fool-proof formatting. `##,###,##.#` or `0#,#00#.###0#` are all OK.\n* Auto number rounding.\n* Simple interface, just supply mask & value like this: `numberFormatter( \"0.0000\", 3.141592)`.\n* Include a prefix &amp; suffix with the mask\n\n## Limitations\n\n* No scientific/engineering formatting.\n* Not for date or phone formation.\n* No color control.\n* <del>No prefix or suffix is allowed except leading negation symbol. So `$#,##0.00` or `#,###.##USD` will not yield expected outcome. Use `'$'+numberFormatter('#,##0.00', 123.45)` or `numberFormatter('#,##0.00', 456.789) + 'USD'`</del>\n* The prefix or suffix can not include any numbers (`0-9`), dashes (`-`), or plus signs (`+`).\n\n## Installation\n\n### npm\n\n```sh\n$ npm install --save number-formatter\n```\n\n### bower\n\n```sh\n$ bower install --save number-formatter\n```\n\n## Note\n\nWhen there's only one symbol is supplied, system will always treat the single symbol as Decimal. For instance, `numberFormatter( '#,###', 1234567.890)` will output `1234567,890`. To force a single symbol as Separator, add a trailing dot to the end like this: `numberFormatter( '#,###.', 1234567.890)` which will then output `1,234,567`.\n\nA demo/sample page with few examples is provided ([DEMO](http://mottie.github.io/javascript-number-formatter/)). The code is safe to be minimized using Google Compiler in Advanced mode.\n\n## Version\n\n### V1.1.5 (1/26/2015)\n\n* Change name in bower.json & package.json to \"number-format.js\".\n* Update readme with installation instructions.\n\n### v1.1.4 (1/26/2015)\n\n* Add AMD & NodeJS compatibility (UMD). Thanks [MadMG](https://github.com/MadMG)!\n* Renamed variables & code cleanup to make it more readable.\n\n### v1.1.3 (11/12/2014)\n\n* Fix bower link to point to the production version. Thanks [marcelboettcher](https://github.com/marcelboettcher)!\n* Minor code & demo cleanup.\n\n### v1.1.2 (6/22/2014)\n\n* Remove negative sign from results with a value of zero.\n* Added more examples to demo page.\n","maintainers":[{"name":"j-","email":"jh@live.com.au"}],"time":{"modified":"2022-06-22T13:18:59.736Z","created":"2015-04-09T05:05:51.169Z","1.1.5":"2015-04-09T05:05:51.169Z","1.1.6":"2015-04-09T05:37:42.714Z","1.1.7":"2015-04-09T06:20:03.150Z","1.1.8":"2015-04-09T07:22:51.723Z","1.2.0":"2016-02-05T04:11:21.031Z"},"homepage":"http://mottie.github.com/javascript-number-formatter/","keywords":["number","format","formatter","currency"],"repository":{"type":"git","url":"git://github.com/j-/number-formatter.git"},"contributors":[{"name":"Jamie Hoeks","email":"j@skeoh.com"}],"author":{"name":"KPL","url":"https://code.google.com/u/100789773228459308870/"},"bugs":{"url":"https://github.com/j-/number-formatter/issues"},"readmeFilename":"README.md","users":{"whothey":true}}