{"_id":"accounting","_rev":"41-1740c3504c568f57d4f6b37e183c0743","name":"accounting","description":"number, money and currency formatting library","dist-tags":{"latest":"0.4.1"},"versions":{"0.3.0":{"name":"accounting","description":"number, money and currency formatting library","homepage":"http://josscrowcroft.github.com/accounting.js","keywords":["accounting","number","money","currency","format","utilities"],"author":{"name":"Joss Crowcroft","email":"josscrowcroft@gmail.com","url":"http://www.josscrowcroft.com"},"contributors":[],"dependencies":{},"repository":{"type":"git","url":"git://github.com/josscrowcroft/accounting.js.git"},"main":"accounting.js","version":"0.3.0","_id":"accounting@0.3.0","engines":{"node":"*"},"_engineSupported":true,"_npmVersion":"0.3.18","_nodeVersion":"v0.4.7","directories":{},"files":[""],"_defaultsLoaded":true,"dist":{"shasum":"90968fdd9e4429cabde0d1f21ef596fadf17d82a","tarball":"https://registry.npmjs.org/accounting/-/accounting-0.3.0.tgz","integrity":"sha512-jQ3khpcyWQonNlfPRf+6i9AYJjh52lm5J3iHq9K3waSq3cPUbAulmJZ52vfc5kO1WHJK7wzlFisc2uSGhhgMUg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIG6z0L7IWVID8rTzVwQWCObIZL85UJX3beaAZHgb+nZ4AiBnYsw81JNzPuqumCY9Xm3+QwSQ8fFXaGdlnJyIFPtHEg=="}]},"maintainers":[{"name":"joss","email":"josscrowcroft@gmail.com"}]},"0.3.2":{"name":"accounting","description":"number, money and currency parsing/formatting library","homepage":"http://josscrowcroft.github.com/accounting.js","keywords":["accounting","number","money","currency","format","utilities"],"author":{"name":"Joss Crowcroft","email":"josscrowcroft@gmail.com","url":"http://www.josscrowcroft.com"},"contributors":[],"dependencies":{},"repository":{"type":"git","url":"git://github.com/josscrowcroft/accounting.js.git"},"main":"accounting.js","version":"0.3.2","_id":"accounting@0.3.2","engines":{"node":"*"},"_engineSupported":true,"_npmVersion":"0.3.18","_nodeVersion":"v0.4.7","directories":{},"files":[""],"_defaultsLoaded":true,"dist":{"shasum":"b511956d158a4db3f248bd2e53ebb47c5bb93088","tarball":"https://registry.npmjs.org/accounting/-/accounting-0.3.2.tgz","integrity":"sha512-zg1Gj2BzvJoDW7S6bbW/wu6BD0xjVXzr/iXU2yxfwj1aNXM45cQFWpAEbeQatKoKMaiTjbIGSsq/Tq0ttTidjA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIBMhx9KbcYCwbNr2ZwHRiY0FuqRScMb9HCgM7mbRLQUmAiEAxXw2vZDN9G1hbjGfTERsOgb3b22qF3ofqjO1/ClFO9Y="}]},"maintainers":[{"name":"joss","email":"josscrowcroft@gmail.com"}]},"0.4.1":{"name":"accounting","description":"number, money and currency formatting library","homepage":"http://openexchangerates.github.io/accounting.js","keywords":["accounting","number","money","currency","format","utilities","finance","exchange"],"author":{"name":"Open Exchange Rates","email":"info@openexchangerates.org","url":"https://www.openexchangerates.org"},"contributors":[{"name":"Open Exchange Rates","email":"info@openxchangerates.org","url":"https://openexchangerates.org"},{"name":"Joss Crowcroft","email":"josscrowcroft@gmail.com","url":"http://www.josscrowcroft.com"}],"dependencies":{},"repository":{"type":"git","url":"git://github.com/openexchangerates/accounting.js.git"},"main":"accounting.js","version":"0.4.1","gitHead":"9b73d760f20fb5bd87a570f7b7ecf9af9cf5b76c","bugs":{"url":"https://github.com/openexchangerates/accounting.js/issues"},"_id":"accounting@0.4.1","scripts":{},"_shasum":"87dd4103eff7f4460f1e186f5c677ed6cf566883","_from":".","_npmVersion":"1.4.21","_npmUser":{"name":"joss","email":"josscrowcroft@gmail.com"},"maintainers":[{"name":"joss","email":"josscrowcroft@gmail.com"}],"dist":{"shasum":"87dd4103eff7f4460f1e186f5c677ed6cf566883","tarball":"https://registry.npmjs.org/accounting/-/accounting-0.4.1.tgz","integrity":"sha512-RU6KY9Y5wllyaCNBo1W11ZOTnTHMMgOZkIwdOOs6W5ibMTp72i4xIbEA48djxVGqMNTUNbvrP/1nWg5Af5m2gQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIBhKUQ7rGoQNL0/DGorHpYTychK7vSrCUB+fmXN1gXVEAiEA7SoZRU3Qzih1dmsT6j9jd1IQFdEjGkw69dML7dNRHJA="}]},"directories":{}}},"maintainers":[{"name":"openexchangerates","email":"info@openexchangerates.org"}],"time":{"modified":"2022-06-13T02:21:38.412Z","created":"2011-10-21T12:39:15.758Z","0.3.0":"2011-10-21T12:39:17.403Z","0.3.2":"2012-01-28T04:22:16.621Z","0.4.1":"2014-07-16T12:44:16.412Z"},"author":{"name":"Open Exchange Rates","email":"info@openexchangerates.org","url":"https://www.openexchangerates.org"},"repository":{"type":"git","url":"git://github.com/openexchangerates/accounting.js.git"},"users":{"mabasic":true,"kenjisan4u":true,"uniquerockrz":true,"asereware":true,"kriswallsmith":true,"zeke":true,"tchcxp":true,"moimikey":true,"leon740727":true,"aranginw":true,"filipve":true,"morrelinko":true,"maninacan":true,"asaupup":true,"pusha":true,"ux_web":true,"ninozhang":true,"ungurys":true,"rocket0191":true,"rahulraghavankklm":true,"nuwaio":true,"nelak":true,"kaashin":true},"readme":"**accounting.js** is a tiny JavaScript library for number, money and currency parsing/formatting. It's lightweight, fully localisable, has no dependencies, and works great client-side or server-side. Use standalone or as a nodeJS/npm and AMD/requireJS module.\n\nVisit the plugin homepage for demos and documentation: **http://openexchangerates.github.io/accounting.js/**\n\nPlease checkout or download the latest stable tag before using in production. [Bug reports](https://github.com/openexchangerates/accounting.js/issues) and pull requests are welcome.\n\nMaintained by [Open Exchange Rates](https://openexchangerates.org \"Free reliable exchange rates/currency conversion data API\") and originally by [@josscrowcroft](http://twitter.com/josscrowcroft) and other [contributors](https://github.com/openexchangerates/accounting.js/contributors).\n\n---\n\n### Works great with:\n\n* **[money.js](http://openexchangerates.github.com/money.js \"JavaScript and NodeJS Currency Conversion Library\")** - a tiny (1kb) standalone JavaScript currency conversion library, for web & nodeJS\n* **[Open Exchange Rates](https://openexchangerates.org \"realtime and historical exchange rates/currency conversion data API\")** - the free currency conversion data API\n\n---\n\n## Changelog\n\n**v0.4.1** - Alias `accounting.formatNumber()` as `accounting.format()`\n\n**v0.4** - Transferred repository to Open Exchange Rates for ongoing maintenance\n\n**v0.3.2** - Fixed package.json dependencies (should be empty object)\n\n**v0.3.0**\n* Rewrote library structure similar to underscore.js for use as a nodeJS/npm and AMD module. Use `npm install accounting` and then `var accounting = require(\"accounting\");` in your nodeJS scripts. \n* Also works with requireJS or any AMD module loader.\n* **unformat** now only attempts to parse the number if it's not already a valid number. \n* `acounting.unformat` now also aliased as `acounting.parse`\n* Fixed an IE bug in the `defaults` method\n\n**v0.2.2** - Fixed same issue as \\#Num: #24 in **formatNumber**; switch to Google Closure Compiler for minified version.\n\n**v0.2.1** - Fixed issue \\#Num: #24 (locally-defined settings object was being modified by **formatMoney**)\n\n**v0.2**\n* Rewrote formatting system for **formatMoney** and **formatColumn** for better control of string output\n* Now supports separate formats for negative and zero values (optionally) via `accounting.settings.currency.format`\n* Internal improvements and helper methods\n\n**v0.1.4**\n* **formatMoney** recursively formats arrays\n* Added Jasmine test suite (thanks to [millermedeiros](https://github.com/millermedeiros)) and QUnit functionality/speed tests\n\n**v0.1.3**\n* Added configurable settings object for default formatting parameters.\n* Added `format` parameter to control symbol and value position (default `\"%s%v\"`, or [symbol][value])\n* Methods consistently accept object as 2nd parameter, matching/overriding the library defaults\n\n**v0.1.2**\n* **formatColumn** works recursively on nested arrays (e.g. `accounting.formatColumn( [[1,12,123,1234], [1234,123,12,1]] )`, returns matching array with inner columns lined up)\n* Fix rounding in **formatNumber**\n\n**v0.1.1**\n* Added **toFixed** method (`accounting.toFixed(value, precision)`), which treats floats more like decimals for more accurate currency rounding\n* Minified version preserves semicolons\n* Fixed `NaN` errors when no value in **unformat**\n\n**v0.1** - First version\n","homepage":"http://openexchangerates.github.io/accounting.js","keywords":["accounting","number","money","currency","format","utilities","finance","exchange"],"contributors":[{"name":"Open Exchange Rates","email":"info@openxchangerates.org","url":"https://openexchangerates.org"},{"name":"Joss Crowcroft","email":"josscrowcroft@gmail.com","url":"http://www.josscrowcroft.com"}],"bugs":{"url":"https://github.com/openexchangerates/accounting.js/issues"},"readmeFilename":"readme.md"}