{"_id":"accounting-js","_rev":"22-cf89ba2ecf657114596a27b64517e61a","name":"accounting-js","dist-tags":{"latest":"2.0.3"},"versions":{"1.0.0":{"name":"accounting-js","version":"1.0.0","keywords":["es6","modules","rollup","bundle","accounting","number","money","currency","format","utilities","finance","exchange"],"author":{"name":"Stanislav Lesnikov"},"license":"MIT","_id":"accounting-js@1.0.0","maintainers":[{"name":"stah","email":"stan@nashdot.com"}],"homepage":"https://github.com/nashdot/accounting-js#readme","bugs":{"url":"https://github.com/nashdot/accounting-js/issues"},"ava":{"tap":true,"files":["tests/*.js"],"failFast":true},"dist":{"shasum":"886b33530271f03a3d45bb3f19d8796aa525b843","tarball":"https://registry.npmjs.org/accounting-js/-/accounting-js-1.0.0.tgz","integrity":"sha512-VAB4IPQqFuLb4TUyQcnUwLdPRmnls+xw/q2WB3UxZCH1GPcKFjXrnihqX8YMkyuJfzmKjTrmlUynKCVwAGJtPA==","signatures":[{"sig":"MEYCIQCrNLhZhGDkvZRo3wEyJlnQqeR4bKqvv47RqzGgaP9EwQIhAKlLbNOXBdjpITC2WufEC7edpJes/o8KBJIQxDCuoLX4","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}]},"main":"dist/accounting.umd.js","_from":".","files":["lib","dist"],"_shasum":"886b33530271f03a3d45bb3f19d8796aa525b843","gitHead":"338a15a76338d963f3cfca16ca7474bd3c539b13","scripts":{"test":"ava","build":"rollup -c rollup.config.umd.js && rollup -c rollup.config.es6.js","prebuild":"eslint lib","prepublish":"npm run build"},"_npmUser":{"name":"stah","email":"stan@nashdot.com"},"repository":{"url":"git+https://github.com/nashdot/accounting-js.git","type":"git"},"_npmVersion":"3.5.1","description":"Number, money and currency formatting library.","directories":{},"jsnext:main":"dist/accounting.es6.js","_nodeVersion":"5.0.0","devDependencies":{"ava":"^0.11.0","eslint":"^2.1.0","rollup":"^0.25.0","babel-eslint":"^5.0.0-beta10","source-map-support":"^0.4.0","rollup-plugin-babel":"^2.3.9","eslint-config-nashdot":"^1.0.0","babel-preset-es2015-rollup":"^1.1.0"},"_npmOperationalInternal":{"tmp":"tmp/accounting-js-1.0.0.tgz_1455758695194_0.5636982026044279","host":"packages-9-west.internal.npmjs.com"}},"1.0.1":{"name":"accounting-js","version":"1.0.1","keywords":["es6","modules","rollup","bundle","accounting","number","money","currency","format","utilities","finance","exchange"],"author":{"name":"Stanislav Lesnikov"},"license":"MIT","_id":"accounting-js@1.0.1","maintainers":[{"name":"stah","email":"stan@nashdot.com"}],"homepage":"https://github.com/nashdot/accounting-js#readme","bugs":{"url":"https://github.com/nashdot/accounting-js/issues"},"ava":{"tap":true,"files":["tests/*.js"],"failFast":true},"nyc":{"exclude":["rollup*.js","tests"]},"dist":{"shasum":"cf9e69696eab1bbb2fe9022ff93373e9656e76b9","tarball":"https://registry.npmjs.org/accounting-js/-/accounting-js-1.0.1.tgz","integrity":"sha512-EKH8B8n47qjTFXc5nIiq5EG2zAyk2c1OhUQ7bVstrWbcRbQ4hvxdouIa9kpRFsyirGPagpk+Y2sbYWpAXTw/wQ==","signatures":[{"sig":"MEUCIQDWSfhBltiG8T2ZAADqXDh9ZKgBLcLtemGZNU+OGjwYRwIgZEwp8dUHevv3Q5dmDSRGK7ophZiS7/oKVDSk7WHYZ3I=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}]},"main":"dist/accounting.umd.js","_from":".","files":["lib","dist"],"_shasum":"cf9e69696eab1bbb2fe9022ff93373e9656e76b9","gitHead":"385ccd14661380f35ca89b3e9662d36052d62f8c","scripts":{"test":"ava","build":"rollup -c rollup.config.umd.js && rollup -c rollup.config.es6.js","pretest":"npm run build","coverage":"nyc --reporter=lcov --reporter=text npm test","prebuild":"eslint lib","prepublish":"npm run build","precoverage":"rimraf coverage"},"_npmUser":{"name":"stah","email":"stan@nashdot.com"},"repository":{"url":"git+https://github.com/nashdot/accounting-js.git","type":"git"},"_npmVersion":"3.5.1","description":"Number, money and currency formatting library.","directories":{},"jsnext:main":"dist/accounting.es6.js","_nodeVersion":"5.0.0","devDependencies":{"ava":"^0.12.0","nyc":"^5.6.0","eslint":"^2.2.0","rimraf":"^2.5.2","rollup":"^0.25.0","babel-eslint":"^5.0.0","source-map-support":"^0.4.0","rollup-plugin-babel":"^2.3.9","eslint-config-nashdot":"^1.0.6","babel-preset-es2015-rollup":"^1.1.0"},"_npmOperationalInternal":{"tmp":"tmp/accounting-js-1.0.1.tgz_1456141962997_0.6733252655249089","host":"packages-6-west.internal.npmjs.com"}},"1.1.0":{"name":"accounting-js","version":"1.1.0","keywords":["es6","modules","rollup","bundle","accounting","number","money","currency","format","utilities","finance","exchange"],"author":{"name":"Stanislav Lesnikov"},"license":"MIT","_id":"accounting-js@1.1.0","maintainers":[{"name":"stah","email":"stan@nashdot.com"}],"homepage":"https://github.com/nashdot/accounting-js#readme","bugs":{"url":"https://github.com/nashdot/accounting-js/issues"},"ava":{"tap":true,"files":["tests/*.js"],"failFast":true},"nyc":{"exclude":["rollup*.js","tests"]},"dist":{"shasum":"88bf59477d81aa23741486f148687b804c5ec50b","tarball":"https://registry.npmjs.org/accounting-js/-/accounting-js-1.1.0.tgz","integrity":"sha512-quI9SwBFbPA763Cwyn5SsrMNdDB20wDdx6WGSf9Cx8qnPojW2S15v2EAOFQCjUBmXxQI2piLOpfRdth+y+tBgw==","signatures":[{"sig":"MEQCIFUQof/67if0g41MuAohE0MOZXPnY8Hh1pTbTVA4GgktAiAamixWNZXZA5uJBM9DkA7r4w9gRY2e07AtxSCWyA6P0A==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}]},"main":"dist/accounting.umd.js","_from":".","files":["lib","dist"],"_shasum":"88bf59477d81aa23741486f148687b804c5ec50b","gitHead":"d83d32cdaeb0b7ea5b943ad9b64d96dc2f6c0673","scripts":{"test":"ava","build":"rollup -c rollup.config.umd.js && rollup -c rollup.config.es6.js","pretest":"npm run build","coverage":"nyc --reporter=lcov --reporter=text npm test","prebuild":"eslint lib","prepublish":"npm run build","precoverage":"rimraf coverage"},"_npmUser":{"name":"stah","email":"stan@nashdot.com"},"repository":{"url":"git+https://github.com/nashdot/accounting-js.git","type":"git"},"_npmVersion":"3.5.1","description":"Number, money and currency formatting library.","directories":{},"jsnext:main":"dist/accounting.es6.js","_nodeVersion":"5.0.0","dependencies":{"object-assign":"^4.0.1"},"devDependencies":{"ava":"^0.12.0","nyc":"^5.6.0","eslint":"^2.2.0","rimraf":"^2.5.2","rollup":"^0.25.0","is-string":"^1.0.4","babel-eslint":"^5.0.0","source-map-support":"^0.4.0","rollup-plugin-babel":"^2.3.9","eslint-config-nashdot":"^1.1.0","rollup-plugin-commonjs":"^2.2.1","babel-preset-es2015-rollup":"^1.1.0","rollup-plugin-node-resolve":"^1.4.0"},"_npmOperationalInternal":{"tmp":"tmp/accounting-js-1.1.0.tgz_1456354490387_0.11043976317159832","host":"packages-9-west.internal.npmjs.com"}},"1.1.1":{"name":"accounting-js","version":"1.1.1","keywords":["es6","modules","rollup","bundle","accounting","number","money","currency","format","utilities","finance","exchange"],"author":{"name":"Stanislav Lesnikov"},"license":"MIT","_id":"accounting-js@1.1.1","maintainers":[{"name":"stah","email":"stan@nashdot.com"}],"homepage":"https://github.com/nashdot/accounting-js#readme","bugs":{"url":"https://github.com/nashdot/accounting-js/issues"},"ava":{"tap":true,"files":["tests/*.js"],"failFast":true},"nyc":{"exclude":["rollup*.js","tests"]},"dist":{"shasum":"7fe4b3f70c01ebe0b85c02c5f107f1393b880c9e","tarball":"https://registry.npmjs.org/accounting-js/-/accounting-js-1.1.1.tgz","integrity":"sha512-y7mSSvP1ZsOgeUPnGxhQaTIEpVYzLB8N+yqFjDICe/xiNq/kIgGZ6tfqwi2qPFqf0e2BnSsqiKt4IuzhRjpG8A==","signatures":[{"sig":"MEUCIQC//Ego15S2sQW/aGw89jWYCagtrPJvmFRwZkDbNvfp4AIgMqqzzOy2ULhKhOoGW4jix/+DLf1RFw1AyF1Yt7r301s=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}]},"main":"dist/accounting.umd.js","_from":".","files":["lib","dist"],"_shasum":"7fe4b3f70c01ebe0b85c02c5f107f1393b880c9e","gitHead":"4775140d47f3e499920807bef62201458b7dde93","scripts":{"test":"ava","build":"rollup -c rollup.config.umd.js && rollup -c rollup.config.es6.js","pretest":"npm run build","coverage":"nyc --reporter=lcov --reporter=text npm test","prebuild":"eslint lib","prepublish":"npm run build","precoverage":"rimraf coverage"},"_npmUser":{"name":"stah","email":"stan@nashdot.com"},"repository":{"url":"git+https://github.com/nashdot/accounting-js.git","type":"git"},"_npmVersion":"3.5.1","description":"Number, money and currency formatting library.","directories":{},"jsnext:main":"dist/accounting.es6.js","_nodeVersion":"5.0.0","dependencies":{"is-string":"^1.0.4","object-assign":"^4.0.1"},"devDependencies":{"ava":"^0.12.0","nyc":"^5.6.0","eslint":"^2.2.0","rimraf":"^2.5.2","rollup":"^0.25.0","babel-eslint":"^5.0.0","source-map-support":"^0.4.0","rollup-plugin-babel":"^2.3.9","eslint-config-nashdot":"^1.1.0","rollup-plugin-commonjs":"^2.2.1","babel-preset-es2015-rollup":"^1.1.0","rollup-plugin-node-resolve":"^1.4.0"},"_npmOperationalInternal":{"tmp":"tmp/accounting-js-1.1.1.tgz_1456354762711_0.3091404673177749","host":"packages-6-west.internal.npmjs.com"}},"2.0.0":{"name":"accounting-js","version":"2.0.0","keywords":["es6","modules","rollup","bundle","accounting","number","money","currency","format","utilities","finance","exchange"],"author":{"name":"Stanislav Lesnikov"},"license":"MIT","_id":"accounting-js@2.0.0","maintainers":[{"name":"stah","email":"stan@nashdot.com"}],"homepage":"https://github.com/nashdot/accounting-js#readme","bugs":{"url":"https://github.com/nashdot/accounting-js/issues"},"dist":{"shasum":"d6f73d92160b8f355b4e909c6248556e9ffe4359","tarball":"https://registry.npmjs.org/accounting-js/-/accounting-js-2.0.0.tgz","fileCount":9,"integrity":"sha512-3r46wSO6zkv8WTKr5DRAQcYumlr/dfFUjwiV6X03rFtulMh7VOrnuLZh/EPcvgbhX/g9MPk5Gu+1lROmDVQtfQ==","signatures":[{"sig":"MEQCIH1HdWkqX/QsTY6pUm2BEozEKO5wqEbos5jyjK+CYm2FAiBPqLUzVU5Wj3Z7F7jVq/RrIWPlgNfvHx3N93WQjj81VA==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":46486},"main":"./dist/index.js","types":"./dist/index.d.ts","module":"./dist/index.mjs","exports":{".":{"import":{"default":"./dist/index.mjs"},"require":{"types":"./dist/index.d.ts","default":"./dist/index.js"}},"./package.json":"./package.json"},"gitHead":"a20ed0ad27a3c4f685140c273bdcb03ebaca5191","scripts":{"ci":"npm run lint && npm run build && npm run check-exports && npm run test","docs":"typedoc src/index.ts","lint":"eslint . --ext .js,.ts,.mjs","test":"vitest run","build":"tsup","predoc":"rimraf docs","coverage":"vitest run --coverage","precoverage":"rimraf coverage","check-exports":"attw --pack .","local-release":"changeset version","changeset-publish":"changeset publish"},"_npmUser":{"name":"stah","email":"stan@nashdot.com"},"repository":{"url":"git+https://github.com/nashdot/accounting-js.git","type":"git"},"_npmVersion":"11.3.0","description":"Number, money and currency formatting library.","directories":{},"_nodeVersion":"22.13.1","_hasShrinkwrap":false,"devDependencies":{"tsup":"^8.5.0","eslint":"^9.28.0","rimraf":"^6.0.1","vitest":"^3.2.1","typedoc":"^0.28.5","@eslint/js":"^9.28.0","typescript":"^5.8.3","@changesets/cli":"^2.29.4","typescript-eslint":"^8.33.1","@vitest/coverage-v8":"^3.2.1","@arethetypeswrong/cli":"^0.18.1","@stylistic/eslint-plugin":"^4.4.1","typedoc-plugin-missing-exports":"^4.0.0"},"_npmOperationalInternal":{"tmp":"tmp/accounting-js_2.0.0_1749192061855_0.865830997022528","host":"s3://npm-registry-packages-npm-production"}},"2.0.1":{"name":"accounting-js","version":"2.0.1","keywords":["es6","modules","rollup","bundle","accounting","number","money","currency","format","utilities","finance","exchange"],"author":{"name":"Stanislav Lesnikov"},"license":"MIT","_id":"accounting-js@2.0.1","maintainers":[{"name":"stah","email":"stan@nashdot.com"}],"homepage":"https://nashdot.github.io/accounting-js","bugs":{"url":"https://github.com/nashdot/accounting-js/issues"},"dist":{"shasum":"f9e79ac5dead5aba78a1e6d4cb9c42c2147c3335","tarball":"https://registry.npmjs.org/accounting-js/-/accounting-js-2.0.1.tgz","fileCount":9,"integrity":"sha512-UFMo0LUraoYmCaR1M3neTMze1n24kXawFF0rZBZMTc4upBDuPLzxGS8klqoivaIXXtje8GiIIT532BEDP5Pkug==","signatures":[{"sig":"MEUCIQDxPaP8+q7JHMJeUaNPsBmlv7oo2bfwkV8E3VJBskcEHQIgbdSzH3s7l8Qhiw997vhb+tpKLfnPDsXL0QecsDnpWLo=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":46775},"main":"./dist/index.js","types":"./dist/index.d.ts","module":"./dist/index.mjs","exports":{".":{"import":{"default":"./dist/index.mjs"},"require":{"types":"./dist/index.d.ts","default":"./dist/index.js"}},"./package.json":"./package.json"},"gitHead":"e38e141d2c105b974206c13f786f76f44f92ec88","scripts":{"ci":"npm run lint && npm run build && npm run check-exports && npm run test","docs":"typedoc src/index.ts","lint":"eslint . --ext .js,.ts,.mjs","test":"vitest run","build":"tsup","predoc":"rimraf docs","coverage":"vitest run --coverage","deploy-docs":"gh-pages -d docs","precoverage":"rimraf coverage","check-exports":"attw --pack .","local-release":"changeset version","changeset-publish":"changeset publish"},"_npmUser":{"name":"stah","email":"stan@nashdot.com"},"repository":{"url":"git+https://github.com/nashdot/accounting-js.git","type":"git"},"_npmVersion":"11.3.0","description":"Number, money and currency formatting library.","directories":{},"_nodeVersion":"22.13.1","_hasShrinkwrap":false,"devDependencies":{"tsup":"^8.5.0","eslint":"^9.28.0","rimraf":"^6.0.1","vitest":"^3.2.1","typedoc":"^0.28.5","gh-pages":"^6.3.0","@eslint/js":"^9.28.0","typescript":"^5.8.3","@changesets/cli":"^2.29.4","typescript-eslint":"^8.33.1","@vitest/coverage-v8":"^3.2.1","@arethetypeswrong/cli":"^0.18.1","@stylistic/eslint-plugin":"^4.4.1","typedoc-plugin-missing-exports":"^4.0.0"},"_npmOperationalInternal":{"tmp":"tmp/accounting-js_2.0.1_1749195752906_0.8149857719695075","host":"s3://npm-registry-packages-npm-production"}},"2.0.2":{"name":"accounting-js","version":"2.0.2","keywords":["es6","modules","rollup","bundle","accounting","number","money","currency","format","utilities","finance","exchange"],"author":{"name":"Stanislav Lesnikov"},"license":"MIT","_id":"accounting-js@2.0.2","maintainers":[{"name":"stah","email":"stan@nashdot.com"}],"homepage":"https://nashdot.github.io/accounting-js","bugs":{"url":"https://github.com/nashdot/accounting-js/issues"},"dist":{"shasum":"01cc964e2be353672f8d14ab846a12e27b6cd5f9","tarball":"https://registry.npmjs.org/accounting-js/-/accounting-js-2.0.2.tgz","fileCount":9,"integrity":"sha512-Hqs3o2RjE5EunLqh2f946NfydeY9mALgKdTNcdVYcsk+30E1QXqrI+8eOP20zGRxyrR2b/I70/1QMwdW1zgtDA==","signatures":[{"sig":"MEUCIQCz/wjgFBbY7RsCD2AlNKmq4/UnjR4Lv+sQECNe0q3ZSgIgHpOBr59CyiDIOD2Jo8XG3+HaQM0s3ptTck2imD5AJj0=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":46826},"main":"./dist/index.js","types":"./dist/index.d.ts","module":"./dist/index.mjs","exports":{".":{"import":{"default":"./dist/index.mjs"},"require":{"types":"./dist/index.d.ts","default":"./dist/index.js"}},"./package.json":"./package.json"},"gitHead":"be4adffcd80776c8faf20304d9d3aa8e8c212efa","scripts":{"ci":"npm run lint && npm run build && npm run check-exports && npm run test","docs":"typedoc src/index.ts","lint":"eslint . --ext .js,.ts,.mjs","test":"vitest run","build":"tsup","predoc":"rimraf docs","coverage":"vitest run --coverage","deploy-docs":"gh-pages -d docs","precoverage":"rimraf coverage","check-exports":"attw --pack .","local-release":"changeset version","changeset-publish":"changeset publish"},"_npmUser":{"name":"stah","email":"stan@nashdot.com"},"repository":{"url":"git+https://github.com/nashdot/accounting-js.git","type":"git"},"_npmVersion":"11.3.0","description":"Number, money and currency formatting library.","directories":{},"_nodeVersion":"22.13.1","_hasShrinkwrap":false,"devDependencies":{"tsup":"^8.5.0","eslint":"^9.28.0","rimraf":"^6.0.1","vitest":"^3.2.1","typedoc":"^0.28.5","gh-pages":"^6.3.0","@eslint/js":"^9.28.0","typescript":"^5.8.3","@changesets/cli":"^2.29.4","typescript-eslint":"^8.33.1","@vitest/coverage-v8":"^3.2.1","@arethetypeswrong/cli":"^0.18.1","@stylistic/eslint-plugin":"^4.4.1","typedoc-plugin-missing-exports":"^4.0.0"},"_npmOperationalInternal":{"tmp":"tmp/accounting-js_2.0.2_1749197378029_0.6178587278326693","host":"s3://npm-registry-packages-npm-production"}},"2.0.3":{"name":"accounting-js","version":"2.0.3","description":"Number, money and currency formatting library.","main":"./dist/index.js","module":"./dist/index.mjs","exports":{"./package.json":"./package.json",".":{"import":{"default":"./dist/index.mjs"},"require":{"types":"./dist/index.d.ts","default":"./dist/index.js"}}},"scripts":{"predoc":"rimraf docs","docs":"typedoc src/index.ts","deploy-docs":"gh-pages -d docs","build":"tsup","lint":"eslint . --ext .js,.ts,.mjs","test":"vitest run","precoverage":"rimraf coverage","coverage":"vitest run --coverage","check-exports":"attw --pack .","ci":"npm run lint && npm run build && npm run check-exports && npm run test","local-release":"changeset version","changeset-publish":"changeset publish"},"repository":{"type":"git","url":"git+https://github.com/nashdot/accounting-js.git"},"keywords":["es6","modules","rollup","bundle","accounting","number","money","currency","format","utilities","finance","exchange"],"author":{"name":"Stanislav Lesnikov"},"license":"MIT","bugs":{"url":"https://github.com/nashdot/accounting-js/issues"},"homepage":"https://nashdot.github.io/accounting-js","devDependencies":{"@arethetypeswrong/cli":"^0.18.1","@changesets/cli":"^2.29.4","@eslint/js":"^9.28.0","@stylistic/eslint-plugin":"^4.4.1","@vitest/coverage-v8":"^3.2.1","eslint":"^9.28.0","gh-pages":"^6.3.0","rimraf":"^6.0.1","tsup":"^8.5.0","typedoc":"^0.28.5","typedoc-plugin-missing-exports":"^4.0.0","typescript":"^5.8.3","typescript-eslint":"^8.33.1","vitest":"^3.2.1"},"_id":"accounting-js@2.0.3","gitHead":"be4adffcd80776c8faf20304d9d3aa8e8c212efa","types":"./dist/index.d.ts","_nodeVersion":"22.13.1","_npmVersion":"11.3.0","dist":{"integrity":"sha512-D7vGlTWL7koql/NVJMhMxtGfVd2AxXiifzEN3p/LPPiLtnLCVear2B3Zm7BaHET32iJi3xErPPmygoWy1+D/6Q==","shasum":"7901f181728241ce6d2a5900d2b504b6ce4814aa","tarball":"https://registry.npmjs.org/accounting-js/-/accounting-js-2.0.3.tgz","fileCount":9,"unpackedSize":46883,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIFj+KktAy8KyBLVLgdBsSdRm0Y44rplJMHNT3VToKTAoAiEAx9gcuOKu7x+JSMRIKzZFd0ZDh4qCW0Z6Ex6UIaLhOYw="}]},"_npmUser":{"name":"stah","email":"stan@nashdot.com"},"directories":{},"maintainers":[{"name":"stah","email":"stan@nashdot.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/accounting-js_2.0.3_1749197608557_0.6327752687613772"},"_hasShrinkwrap":false}},"time":{"created":"2016-02-18T01:24:59.386Z","modified":"2025-06-06T08:13:28.925Z","1.0.0":"2016-02-18T01:24:59.386Z","1.0.1":"2016-02-22T11:52:48.760Z","1.1.0":"2016-02-24T22:54:53.447Z","1.1.1":"2016-02-24T22:59:25.275Z","2.0.0":"2025-06-06T06:41:02.047Z","2.0.1":"2025-06-06T07:42:33.097Z","2.0.2":"2025-06-06T08:09:38.245Z","2.0.3":"2025-06-06T08:13:28.733Z"},"bugs":{"url":"https://github.com/nashdot/accounting-js/issues"},"author":{"name":"Stanislav Lesnikov"},"license":"MIT","homepage":"https://nashdot.github.io/accounting-js","keywords":["es6","modules","rollup","bundle","accounting","number","money","currency","format","utilities","finance","exchange"],"repository":{"type":"git","url":"git+https://github.com/nashdot/accounting-js.git"},"description":"Number, money and currency formatting library.","maintainers":[{"name":"stah","email":"stan@nashdot.com"}],"readme":"[![NPM version](https://img.shields.io/npm/v/accounting-js.svg)](https://www.npmjs.com/package/accounting-js)\n\n**accounting-js** is a tiny JavaScript library for number, money and currency parsing/formatting. It's lightweight, fully localizable, has no dependencies, and works great client-side or server-side. Use standalone or as a nodeJS/npm and AMD/requireJS module.\n\n[Documentation](http://nashdot.github.io/accounting-js)\n\n## Quickstart\n\n### Install\n\n```shell\nnpm install accounting-js\n```\n\n### Use\n\n#### Format number\n\n```javascript\nimport { formatNumber } from 'accounting-js';\n\n// Default usage\nformatNumber(5318008);\n// ⇨ 5,318,008\n\n// Custom format\nformatNumber(9876543.21, { precision: 3, thousand: \" \" });\n// ⇨ 9 876 543.210\n```\n\n#### Format money\n\n```javascript\nimport { formatMoney } from 'accounting-js';\n\n// Default usage\nformatMoney(12345678);\n// ⇨ $12,345,678.00\n\n// European formatting (custom symbol and separators)\nformatMoney(4999.99, { symbol: \"€\", precision: 2, thousand: \".\", decimal: \",\" });\n// ⇨ €4.999,99\n```\n\n#### Convert money to numeric\n\n```javascript\nimport { unformat } from 'accounting-js';\n\nunformat('£ 12,345,678.90 GBP');\n// ⇨ 12345678.9\n```\n\n#### Accounting toFixed()\n\n```javascript\n// Native toFixed has rounding issues\n(0.615).toFixed(2);\n// ⇨ '0.61'\n\n// With accounting-js\ntoFixed(0.615, 2);\n// ⇨ '0.62'\n```\n\n---\nCopyright (c) 2016-present Stanislav Lesnikov, MIT License\n\nCopyright (c) 2014 Open Exchange Rates, MIT License\n","readmeFilename":"README.md","users":{"jk6":true,"mmork":true,"panlw":true,"dsavin":true,"xxronis":true,"ssljivic":true,"yangyong":true,"edgars-sirokovs":true,"rahulraghavankklm":true}}