{"_id":"zero-decimal-currencies","_rev":"13-e48c89cd57755c4c61c4515ccad21c8e","name":"zero-decimal-currencies","dist-tags":{"latest":"1.6.0"},"versions":{"1.0.0":{"name":"zero-decimal-currencies","version":"1.0.0","keywords":["zero-decimal","currencies","zero","decimal","currency","stripe","parse"],"author":{"url":"https://github.com/KelvinCampelo","name":"Kelvin Campelo","email":"kelvsousa@gmail.com"},"license":"MIT","_id":"zero-decimal-currencies@1.0.0","maintainers":[{"name":"kelvincampelo","email":"kelvsousa@gmail.com"}],"homepage":"https://github.com/KelvinCampelo/zero-decimal-currencies#readme","bugs":{"url":"https://github.com/KelvinCampelo/zero-decimal-currencies/issues"},"dist":{"shasum":"2910bdb7a1a6253ca290ed21c24685ddc73d6690","tarball":"https://registry.npmjs.org/zero-decimal-currencies/-/zero-decimal-currencies-1.0.0.tgz","fileCount":5,"integrity":"sha512-gG0NEsXJxasQnOYB1bC9Obd19yaGavkgbH4d2mPfmJOEP5OJoom7e9v2jHkjQHsqfZ93C8kgQE8ncEgUg+X7Hg==","signatures":[{"sig":"MEUCIHas4sJuKsnInLxYku47x5ZGs9S04MMLe7794GsTKXY5AiEA3D+PvjDhtmQauclyNBVW2ocqRZ9CkueWAsLkdFKUPjs=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":8170,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdpLnQCRA9TVsSAnZWagAAmWUQAKSZGV2q76BTd+s2NV8W\noAeXfW+9rFQ4V3ywTanjhf0iOJrgzS3Fj6O88WOubqUCrB/zQil9y1GDGxHM\nLea1ynP2ZlSFBLds0quWSX6syOp+NicuI6VQLjHsNpybgdCZlSHqvEnMJejv\nsQijRrNjFgzsFztMxK6JRCqKN8a8zoV4AI8ICvFwCJynQZcRmVfmR+Xz3rz+\n1N+FFxf/43MGdhr+GefxXs3nAxuQG2geh+enEmixEGbO+PGea7nLu+r8cRjH\nKfcSOXfO5MEn2xwAFMRlKVES+pgMdqfifKgvRoInpLLZHlsZAJXPV23t/h7q\nev7Sut4vOkwRF2gHIXPgGSZ0YOUPeeXbAFBXm3kyKA06MWQxUgxBBiJbosNh\nKxfogkhiTGC2ncGAGPQZp2jQW/u+UhXx3HehaKUZP4VKlU6i5697oHrhlLhu\n0hMb1dIHkIt5OhmydAHU1wZZdinSwHjDhDB8Lqv/KAuCyUYMjGt0mkV/0Sm+\nBvMcBPtdNIn0sVW4Cuh1zG6a4vBLVe5lA+C8DCxMTQgzQfYagDfkoooL+3y5\n2d6khBMdl9jA+RmVdfeLVylaccLA3/Z7Q43R8Loyg6k0sUuLNPAvsFNxVyhX\n+aZK3dThg7jZzPyNgMws7PpyovBTCR9sE0arfLFvq9JXUg55HGxccUbJxs1O\n7iMf\r\n=9sft\r\n-----END PGP SIGNATURE-----\r\n"},"main":"lib/index.js","config":{"commitizen":{"path":"cz-conventional-changelog"}},"gitHead":"d3ac5c3a6ff2658e0ff134648be746ebf87543b0","scripts":{"pp":"npm run prepare","lint":"eslint src test","test":"ava --require babel-core/register","audit":"nsp check package","build":"babel -d ./ ./src","check":"npm run audit && npm outdated --depth 0","major":"pmm major","minor":"pmm minor","patch":"pmm patch","prepare":"npm run build && npm run validate && npm audit fix","coverage":"nyc --reporter=lcov --reporter=text --reporter=html npm test","validate":"npm run lint && npm test","coveralls":"npm run coverage && cat ./coverage/lcov.info | coveralls && rm -rf ./coverage"},"_npmUser":{"name":"kelvincampelo","email":"kelvsousa@gmail.com"},"pre-commit":["validate"],"repository":{"url":"git+https://github.com/KelvinCampelo/zero-decimal-currencies.git","type":"git"},"_npmVersion":"6.11.3","description":"Get the smallest currency unit event to a Zero Decimal Currency","directories":{},"_nodeVersion":"12.6.0","_hasShrinkwrap":false,"devDependencies":{"ava":"^2.4.0","nyc":"^14.1.1","pmm":"^1.3.0","escope":"^3.6.0","eslint":"^6.5.1","babel-cli":"^6.26.0","coveralls":"^3.0.7","babel-core":"^6.5.2","pre-commit":"^1.1.2","babel-eslint":"^6.0.0","babel-preset-env":"^1.7.0","cz-conventional-changelog":"^1.1.5","babel-plugin-transform-function-bind":"^6.5.2"},"_npmOperationalInternal":{"tmp":"tmp/zero-decimal-currencies_1.0.0_1571076559511_0.7505478996354193","host":"s3://npm-registry-packages"}},"1.0.1":{"name":"zero-decimal-currencies","version":"1.0.1","keywords":["zero-decimal","currencies","zero","decimal","currency","stripe","parse"],"author":{"url":"https://github.com/KelvinCampelo","name":"Kelvin Campelo","email":"kelvsousa@gmail.com"},"license":"MIT","_id":"zero-decimal-currencies@1.0.1","maintainers":[{"name":"kelvincampelo","email":"kelvsousa@gmail.com"}],"homepage":"https://github.com/KelvinCampelo/zero-decimal-currencies#readme","bugs":{"url":"https://github.com/KelvinCampelo/zero-decimal-currencies/issues"},"dist":{"shasum":"2e2ad6f02e4b885b3272174f610b5654451a2c39","tarball":"https://registry.npmjs.org/zero-decimal-currencies/-/zero-decimal-currencies-1.0.1.tgz","fileCount":5,"integrity":"sha512-S4uOkLb9BLJyJJZeDr/V1Av9jOkoG/S44G2pDUFk41JyWgQFb6OOKBsU2ulLYipxG6reKlecsM5N+nozsO7OPg==","signatures":[{"sig":"MEQCIAPFt5wS6ujTYynE7fSnnOdYsG6Gei8GpBnyE0D+XJhtAiAQD1XrtUA/74hja0D0vSGH/y7yqWg5OWgcRu+l87YTmQ==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":8103,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdpMKACRA9TVsSAnZWagAAx5kP/AisZuJPu5MaeIYjX0fK\n69UsYV3ubQYgGXFJF2XgeXi+URbq/5uSbe0yFnOQJ6cUDYxAYqdnoVBucj29\naQo82+HVcV1nzjLffqd29Ut5bspBmcnelERR1cwu7SIbUMdnmd2MpVqI/cl5\nK7bMGwOl5vAR0XNUfB6uwQL1R3BScRLu3HPeqPkKfwTRcIlr3UaakFyEZ4bO\nOt+W35pSGEiT3ylLkyqcqJl7nmJQy+srXZwB9F1OQZAxMVt5jtadj3MGrPdK\nyEO+rsNVOo78jCZlJDjZoGI+AHMiLKN18tgItQ6hv1A+NQqSBbxIclLE096Q\njUZ0mwaME7i2ku36AHDgp64J/0AgI5bp+2dSBoqd8wl0HpnDzSayjZUX+eFH\nFcO+Bq0lTmNKIEmOT6OGj3M4r+E/Bp6RNcVBJPB7qdFXXO0mt5STl1QWgy1E\nkTA8v/MdP+Bbk8bPumr/5x0wWyNHcMI/wymqIqGd3UDYHmjWY0LesW3QI3hD\nLWPDcqI5RbSKqF9t6blri7LJ5YN0kmzUO6LcyZ4UTuTf05v+D0B6kp+fLFF8\nvmKGM8D9Z2no4FT+qcam5Tj/0dYDJ5xLamjAOTziS2QtyLBQYyF8qNdo5e5b\nccfY9TzgwBezKwZua9Ujnj/x4RcPMsxf+EyiDRBTbYwt8rLLiyfIfUysR7i1\nrssq\r\n=lmng\r\n-----END PGP SIGNATURE-----\r\n"},"main":"lib/index.js","config":{"commitizen":{"path":"cz-conventional-changelog"}},"gitHead":"a7331bb627f75f0481f02c8246dcf0aeb71f1d0e","scripts":{"pp":"npm run prepare","lint":"eslint src test","test":"ava --require babel-core/register","build":"babel -d ./ ./src","check":"npm outdated --depth 0","major":"pmm major","minor":"pmm minor","patch":"pmm patch","prepare":"npm run build && npm run validate","coverage":"nyc --reporter=lcov --reporter=text --reporter=html npm test","validate":"npm run lint && npm test","coveralls":"npm run coverage && cat ./coverage/lcov.info | coveralls && rm -rf ./coverage"},"_npmUser":{"name":"kelvincampelo","email":"kelvsousa@gmail.com"},"pre-commit":["validate"],"repository":{"url":"git+https://github.com/KelvinCampelo/zero-decimal-currencies.git","type":"git"},"_npmVersion":"6.11.3","description":"Get the smallest currency unit event to a Zero Decimal Currency","directories":{},"_nodeVersion":"12.6.0","_hasShrinkwrap":false,"devDependencies":{"ava":"^2.4.0","nyc":"^14.1.1","pmm":"^2.0.0","escope":"^3.6.0","eslint":"^6.5.1","babel-cli":"^6.26.0","coveralls":"^3.0.7","babel-core":"^6.5.2","pre-commit":"^1.1.2","babel-eslint":"^10.0.3","babel-preset-env":"^1.7.0","cz-conventional-changelog":"^3.0.2","babel-plugin-transform-function-bind":"^6.5.2"},"_npmOperationalInternal":{"tmp":"tmp/zero-decimal-currencies_1.0.1_1571078783768_0.9762030573888192","host":"s3://npm-registry-packages"}},"1.0.2":{"name":"zero-decimal-currencies","version":"1.0.2","keywords":["zero-decimal","currencies","zero","decimal","currency","stripe","parse"],"author":{"url":"https://github.com/KelvinCampelo","name":"Kelvin Campelo","email":"kelvsousa@gmail.com"},"license":"MIT","_id":"zero-decimal-currencies@1.0.2","maintainers":[{"name":"kelvincampelo","email":"kelvsousa@gmail.com"}],"homepage":"https://github.com/KelvinCampelo/zero-decimal-currencies#readme","bugs":{"url":"https://github.com/KelvinCampelo/zero-decimal-currencies/issues"},"dist":{"shasum":"84aea65d2edba901fdcf6fdec5641ad768b8417c","tarball":"https://registry.npmjs.org/zero-decimal-currencies/-/zero-decimal-currencies-1.0.2.tgz","fileCount":5,"integrity":"sha512-mRrCtnuSwpeyvcMIFQBgKxoodfzMCWLQnHHsRMdQk5Gn7MBDnFwzLxXD3yfdUgnM3MGgg9CSUFxbBxonB6Gnww==","signatures":[{"sig":"MEUCIQDeXh6hQOYhb9BU8ycWklJPjnoXT2K22hr+uQqN21MtagIgFn1bmBWp0k1Exvi6XbgYXb11aG3NrbIPvADkVyFj8FA=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":8103,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdpMUBCRA9TVsSAnZWagAAeLcP/1x2EXfRyNFWWyQweA/J\n5PGzVILViX0wNfy4dyE1KVVlN+1ikXt0EeoeYBQOQHFrXqfBxYcDRHE/6Rri\nQxjFXn94CuZRcOsyxMbMS2/hoc4znfg9I3d0lSw1RRo9/EGpGcfHFfYXV3/F\naIhw4T/nDQ3+myUpN5en6qrh7P7+uCzF+dI5k33tZ7jiWJ3ldCBCSnrdiBlB\nhgageOJDe1BUz4TeGzTZNHo8UmUQ3+np60M5n0jINWaBhr69ty+4yQ6uXiV2\nUwGaLopDu7qH9DLM1pAQaoZRaiNIgKS+h8xIpleXVYakURRr9TopUiVuKxGh\n1A9OnT597jBnH8rm5MJKPwYZhobISNWSIJZpraByA+Bb/hD3GhJYQo/dsrGk\nO/4BCbmfRiEaF7+gu78edEIg6hYXy1SxJdNzBATbSTaycgc6hHUPhkKUtxFw\nNTeW7PxGyKS/RXSrbZs7AFcKYc9pr1gARq+R3SPlNfmaf6J+pkOeN/Rwj+uK\n/Rs2eBYXjkZKrHkwEwIOnbnLK5BwoPPBchXgOPCp1CfjrvZjwl1ISvxIksjU\nF/QO1YkPxCFgsfwHJFv0rkaXfSot6skhNpghD7lWwdaPGDo2sr1iKAZCJ7t3\nKcJI86xqA3NtaOjX5Xku5RJHGOCpnQYElz/FNrlBIZvOoFIV2ZpZZMTm7c3C\nH8kG\r\n=M8DZ\r\n-----END PGP SIGNATURE-----\r\n"},"main":"lib/index.js","config":{"commitizen":{"path":"cz-conventional-changelog"}},"gitHead":"a7331bb627f75f0481f02c8246dcf0aeb71f1d0e","scripts":{"pp":"npm run prepare","lint":"eslint src test","test":"ava --require babel-core/register","build":"babel -d ./ ./src","check":"npm outdated --depth 0","major":"pmm major","minor":"pmm minor","patch":"pmm patch","prepare":"npm run build && npm run validate","coverage":"nyc --reporter=lcov --reporter=text --reporter=html npm test","validate":"npm run lint && npm test","coveralls":"npm run coverage && cat ./coverage/lcov.info | coveralls && rm -rf ./coverage"},"_npmUser":{"name":"kelvincampelo","email":"kelvsousa@gmail.com"},"pre-commit":["validate"],"repository":{"url":"git+https://github.com/KelvinCampelo/zero-decimal-currencies.git","type":"git"},"_npmVersion":"6.11.3","description":"Get the smallest currency unit event to a Zero Decimal Currency","directories":{},"_nodeVersion":"12.6.0","_hasShrinkwrap":false,"devDependencies":{"ava":"^2.4.0","nyc":"^14.1.1","pmm":"^2.0.0","escope":"^3.6.0","eslint":"^6.5.1","babel-cli":"^6.26.0","coveralls":"^3.0.7","babel-core":"^6.5.2","pre-commit":"^1.1.2","babel-eslint":"^10.0.3","babel-preset-env":"^1.7.0","cz-conventional-changelog":"^3.0.2","babel-plugin-transform-function-bind":"^6.5.2"},"_npmOperationalInternal":{"tmp":"tmp/zero-decimal-currencies_1.0.2_1571079424997_0.6842480894477685","host":"s3://npm-registry-packages"}},"1.0.3":{"name":"zero-decimal-currencies","version":"1.0.3","keywords":["zero-decimal","currencies","zero","decimal","currency","stripe","parse"],"author":{"url":"https://github.com/KelvinCampelo","name":"Kelvin Campelo","email":"kelvsousa@gmail.com"},"license":"MIT","_id":"zero-decimal-currencies@1.0.3","maintainers":[{"name":"kelvincampelo","email":"kelvsousa@gmail.com"}],"homepage":"https://github.com/KelvinCampelo/zero-decimal-currencies#readme","bugs":{"url":"https://github.com/KelvinCampelo/zero-decimal-currencies/issues"},"dist":{"shasum":"c6aeba33204acf63f13fda31bc38b5cac060b377","tarball":"https://registry.npmjs.org/zero-decimal-currencies/-/zero-decimal-currencies-1.0.3.tgz","fileCount":5,"integrity":"sha512-LZhVwzwtPPKCMeqfL0nOk9X74G96y2rWz/z9vPIwH7W8/ydcU55w63Om/mQyn/arpTQmeEPcqXpkaPTRxGOEGA==","signatures":[{"sig":"MEQCIBifyA4UWF7ZqBH5ViPehC0M16Z1n4JmmnvLtHvhE8SeAiBmnXDDoXnyxtiFynAHvGbn+Cnx9vU2VQJJGc7yYmAE5w==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":8614,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdpNmSCRA9TVsSAnZWagAAsD0QAIXo6v+UNPbCONEiUZCs\ngpylkdHPBLkxJfqFLC2Moeak8pZ2nipQdWyoGXwYqdSxxr2K6aP5keZdSW8x\nYkC7sCZAt+aVCcIefXftZxxV/3kSDW5t03bW1B0z4JFnL1HquQph/5Vxq2Cu\n7HDDO3N+CK1O5rUDZyDyqsd9sDdLg/rtjLQIEGTlogMPRBX/HVLgrhrLbct7\nP3yEQzXVFHz5DtgI9cgMSECVd9l7aD+0EnLYNKEf9yncf4MOavh+Q+cX6MAS\nIRu8PRim4qY3bcBZEdJq0GfJ86mRDWD2b4n+GttoyMT7bs7yiRtMG5N9zB3/\naW00ZrhP6Z+cYb4l5XIVwxCK/OSrfIr6WAIbnDumsl7RGd6JEk6hzgKQpvEm\ngBG3zTa+4L4nmg3rarEI8WrtSx/ipicIRrDpgq/UcsqmbvvZ0jK4lpDmgh68\n35DADFxh3NX0cbl6PWIuznDKwLPa9jUs0TXyCVHDB1zCCtGomMjyGncmvRnd\nj6ml9AtpIOVBqfZRpAp1umHvujbotLh3Tu6rfRfN3TYUQFkX9UYujfdn9x30\n33zQOjGe7I7LM7lA2fXKwmcmkS0JpcQO5vgQBtROL61ElTesoJ16UyKzfjBK\nWDYgyhGFQX0dA5yztRf/IYTvZNoFc+pwlSM0r2EGYzZpF1G4DMpd0D1kUbaw\nOoAP\r\n=WAp2\r\n-----END PGP SIGNATURE-----\r\n"},"main":"lib/index.js","config":{"commitizen":{"path":"cz-conventional-changelog"}},"gitHead":"86d3d99c4e9e5b73d160dd6b57b8e7ab6c8fcdb3","scripts":{"pp":"npm run prepare","lint":"eslint src test","test":"ava --require babel-core/register","build":"babel -d ./ ./src","check":"npm outdated --depth 0","major":"pmm major","minor":"pmm minor","patch":"pmm patch","prepare":"npm run build && npm run validate","coverage":"nyc --reporter=lcov --reporter=text --reporter=html npm test","validate":"npm run lint && npm test","coveralls":"npm run coverage && cat ./coverage/lcov.info | coveralls && rm -rf ./coverage"},"_npmUser":{"name":"kelvincampelo","email":"kelvsousa@gmail.com"},"pre-commit":["validate"],"repository":{"url":"git+https://github.com/KelvinCampelo/zero-decimal-currencies.git","type":"git"},"_npmVersion":"6.11.3","description":"Get the smallest currency unit event to a Zero Decimal Currency","directories":{},"_nodeVersion":"12.6.0","_hasShrinkwrap":false,"devDependencies":{"ava":"^2.4.0","nyc":"^14.1.1","pmm":"^2.0.0","escope":"^3.6.0","eslint":"^6.5.1","babel-cli":"^6.26.0","coveralls":"^3.0.7","babel-core":"^6.5.2","pre-commit":"^1.1.2","babel-eslint":"^10.0.3","babel-preset-env":"^1.7.0","cz-conventional-changelog":"^3.0.2","babel-plugin-transform-function-bind":"^6.5.2"},"_npmOperationalInternal":{"tmp":"tmp/zero-decimal-currencies_1.0.3_1571084689907_0.08009549207862543","host":"s3://npm-registry-packages"}},"1.1.0":{"name":"zero-decimal-currencies","version":"1.1.0","keywords":["zero-decimal","currencies","zero","decimal","currency","stripe","parse"],"author":{"url":"https://github.com/KelvinCampelo","name":"Kelvin Campelo","email":"kelvsousa@gmail.com"},"license":"MIT","_id":"zero-decimal-currencies@1.1.0","maintainers":[{"name":"kelvincampelo","email":"kelvsousa@gmail.com"}],"homepage":"https://github.com/KelvinCampelo/zero-decimal-currencies#readme","bugs":{"url":"https://github.com/KelvinCampelo/zero-decimal-currencies/issues"},"dist":{"shasum":"6d6c952263107b08d736e50f864c1b5f39a9fd91","tarball":"https://registry.npmjs.org/zero-decimal-currencies/-/zero-decimal-currencies-1.1.0.tgz","fileCount":5,"integrity":"sha512-M7CYrPrgwjIpmN3bDDLESWJzJtVANCdjqrmZgRmAmu+l6Oizyh8DHhk/vH6HJbAZDFsZK9krRGpAJGKteKm9ow==","signatures":[{"sig":"MEQCIEoHsR66LIxSTymMvTiWkRTIiHih9XwlUWd2Mt84jw0MAiBTne9ECcl2cDhgVTtpKACc4feAZsybB54EWeMhjcM9+w==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":8628,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdpNzZCRA9TVsSAnZWagAAkxEP+QCRb5oJcdhrfUmGu2w1\ny3/kd4r8IGDsplpzsDTf0ATalW3PTc/qyqquGPUn0l7VHkTTP15QzzjMWx8C\nEWoH1M9bJ2JWannEQjUw2jHuq0rYNAKfgwlIdbj+hZcCSvAtxjzGoJfAd6/e\nUzRLmJUXHR6KXhckba/WBjZkNz5LvW201rt0psoxJs3G4rbl7Z2tGge+N+Iz\nbVRGVyEGNKDiZGMEhuUZDp08vRQbb3dffIz6bANmzm5JtPQV1VrgYc2FwXuT\nYrUUOmXEhI64czeRAhUT2ITJLkWHf8ZyI0hsFiBWnZcCp0kHBHSJPwe9iTB2\nwgaT3D41uZH8w7k/m6rDsimYnTQO91Ryi8XIl/4v7Od3JVVjwU7XMl3WYW8n\n2MhSJuuAI8bV/miUSnv+4QQuEQe51kRmFgtpgV5uw8BtBjODpbLJGjq2b/bU\nJMbydWNfdM1rz3Dgp/lVTTmqilddYtJOE7e0sRt28o5ecTq9q04kqIXtIRKd\nL6BwbnXAYTtAbDheJro1QMS3Od8u9LImu7Nty7GloT8B72rYJmAhY6aXiuQm\nGe7E+dg6IFBiQzfeBTBAU2+4nqcZ03KK25EHUsxxEkrzLIJcDHvh6pa2S9wy\nYvxHFf46IVknlTH0NSw0rPtt5QdlU40A7CaugrVE8qnkmLNN6St/6crKYPbS\n4oAI\r\n=4Et9\r\n-----END PGP SIGNATURE-----\r\n"},"main":"lib/index.js","config":{"commitizen":{"path":"cz-conventional-changelog"}},"gitHead":"bf3bcf5a6c34c5ee83ba738c89c8f49a207bc6b3","scripts":{"pp":"npm run prepare","lint":"eslint src test","test":"ava --require babel-core/register","build":"babel -d ./ ./src","check":"npm outdated --depth 0","major":"pmm major","minor":"pmm minor","patch":"pmm patch","prepare":"npm run build && npm run validate","coverage":"nyc --reporter=lcov --reporter=text --reporter=html npm test","validate":"npm run lint && npm test","coveralls":"npm run coverage && cat ./coverage/lcov.info | coveralls && rm -rf ./coverage"},"_npmUser":{"name":"kelvincampelo","email":"kelvsousa@gmail.com"},"pre-commit":["validate"],"repository":{"url":"git+https://github.com/KelvinCampelo/zero-decimal-currencies.git","type":"git"},"_npmVersion":"6.11.3","description":"Get the smallest currency unit event to a Zero Decimal Currency","directories":{},"_nodeVersion":"12.6.0","_hasShrinkwrap":false,"devDependencies":{"ava":"^2.4.0","nyc":"^14.1.1","pmm":"^2.0.0","escope":"^3.6.0","eslint":"^6.5.1","babel-cli":"^6.26.0","coveralls":"^3.0.7","babel-core":"^6.5.2","pre-commit":"^1.1.2","babel-eslint":"^10.0.3","babel-preset-env":"^1.7.0","cz-conventional-changelog":"^3.0.2","babel-plugin-transform-function-bind":"^6.5.2"},"_npmOperationalInternal":{"tmp":"tmp/zero-decimal-currencies_1.1.0_1571085528660_0.339687394157173","host":"s3://npm-registry-packages"}},"1.1.1":{"name":"zero-decimal-currencies","version":"1.1.1","keywords":["zero-decimal","currencies","zero","decimal","currency","stripe","parse"],"author":{"url":"https://github.com/KelvinCampelo","name":"Kelvin Campelo","email":"kelvsousa@gmail.com"},"license":"MIT","_id":"zero-decimal-currencies@1.1.1","maintainers":[{"name":"kelvincampelo","email":"kelvsousa@gmail.com"},{"name":"magdielcas","email":"magdiel.camp@gmail.com"}],"homepage":"https://github.com/KelvinCampelo/zero-decimal-currencies#readme","bugs":{"url":"https://github.com/KelvinCampelo/zero-decimal-currencies/issues"},"dist":{"shasum":"639ecb931931dbd10b4cd5551ab0ab42a29e4aca","tarball":"https://registry.npmjs.org/zero-decimal-currencies/-/zero-decimal-currencies-1.1.1.tgz","fileCount":5,"integrity":"sha512-4IuR7G9YSpKmTEyU6hYe+yjRwDET8cM3aKLzlkpbFz97HwoplMXEUQFZ09qF8jBbPGA04zvNOoAjj4pNEvlLSg==","signatures":[{"sig":"MEYCIQDSPjDCNdnkleKjW6kBZsjMRhf0mIpfQdYptJcj8pcZ0QIhAJ0/prQza/6j3PbgDjhnH9M65je9T9UlRnRZyQTiFLf7","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":8655,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdpOS0CRA9TVsSAnZWagAAOVYQAI4JTsKr5+PnmZGO5aBq\nxDNPMJJESD4QjIs35d719WBXtfBfCuXDBBcHweQ0nxTeYHmOcvTjmWyxKvBK\n2IPSpmqwT0uzAF6mATiFj1eKiGKj/JBdgJAhiCfmrZ+/Ci5GSrkSEE8slyht\nvriKKf0G9mYL8D9B4lvQ1vcmYeuhovfvlSCueqw+QR6BnrSMPVRH0EeNBSea\nJMmAzbMPQ//e7xvaRri1T6ne6yG5zqYUCOQq2dLaawk8VBtYeRqMei6WVI74\nCsWGmPJhgF09djScrVzidwgNV4lxzZYlAhPzFz/lIyBLwMXw8EI5GWexRWXc\n+neWSFjuNCLaS/hNaCQkFCusAY1Nf0Iv9IxTeStoeVb0TxeUQS+rzkaSz+BS\n1pvSmW1bqFqDBlZZNFm9qbp1kN1zcyaUP4PKI8Hg4RefWsa4Muo32KwV01SF\nFEpka1JSw8rgDUnF5nMbDAUCbhDRqKbeUGbKFLshB/dKw7MxaJans47sSUnR\n4t4n5FQrDc/9Jtz+Y58jCUsPnOeQ7Zgk4TVaypAZCTmK7WttFAYloy0M0ewj\nB3ngxpVmlt0jhqoKbMqBXc1TiDdjoVfhVqrHaPCf2icVITofWfiYVjLN7N20\n0nkiWHKS0QEszLUxImFY0vvQQS7YrB2tQ1Si4JZnRr2dwDeyyobXafFrrhaF\nKb0d\r\n=bAWf\r\n-----END PGP SIGNATURE-----\r\n"},"main":"lib/index.js","config":{"commitizen":{"path":"cz-conventional-changelog"}},"gitHead":"5e772a7783fd8132fe7f68e58e1cff57b3ed2295","scripts":{"pp":"npm run prepare","lint":"eslint src test","test":"ava --require babel-core/register","build":"babel -d ./ ./src","check":"npm outdated --depth 0","major":"pmm major","minor":"pmm minor","patch":"pmm patch","prepare":"npm run build && npm run validate","coverage":"nyc --reporter=lcov --reporter=text --reporter=html npm test","validate":"npm run lint && npm test","coveralls":"npm run coverage && cat ./coverage/lcov.info | coveralls && rm -rf ./coverage"},"_npmUser":{"name":"magdielcas","email":"magdiel.camp@gmail.com"},"pre-commit":["validate"],"repository":{"url":"git+https://github.com/KelvinCampelo/zero-decimal-currencies.git","type":"git"},"_npmVersion":"6.4.1","description":"Get the smallest currency unit event to a Zero Decimal Currency","directories":{},"_nodeVersion":"10.14.2","_hasShrinkwrap":false,"devDependencies":{"ava":"^2.4.0","nyc":"^14.1.1","pmm":"^2.0.0","escope":"^3.6.0","eslint":"^6.5.1","babel-cli":"^6.26.0","coveralls":"^3.0.7","babel-core":"^6.5.2","pre-commit":"^1.1.2","babel-eslint":"^10.0.3","babel-preset-env":"^1.7.0","cz-conventional-changelog":"^3.0.2","babel-plugin-transform-function-bind":"^6.5.2"},"_npmOperationalInternal":{"tmp":"tmp/zero-decimal-currencies_1.1.1_1571087539893_0.6076004003997553","host":"s3://npm-registry-packages"}},"1.1.2":{"name":"zero-decimal-currencies","version":"1.1.2","keywords":["zero-decimal","currencies","zero","decimal","currency","stripe","parse"],"author":{"url":"https://github.com/KelvinCampelo","name":"Kelvin Campelo","email":"kelvsousa@gmail.com"},"license":"MIT","_id":"zero-decimal-currencies@1.1.2","maintainers":[{"name":"kelvincampelo","email":"kelvsousa@gmail.com"},{"name":"magdielcas","email":"magdiel.camp@gmail.com"}],"homepage":"https://github.com/KelvinCampelo/zero-decimal-currencies#readme","bugs":{"url":"https://github.com/KelvinCampelo/zero-decimal-currencies/issues"},"dist":{"shasum":"fee2ffd2a14739adec842a97742239591b93916b","tarball":"https://registry.npmjs.org/zero-decimal-currencies/-/zero-decimal-currencies-1.1.2.tgz","fileCount":5,"integrity":"sha512-Za4IG4lofg4NKFFNGOBfbgvGmhFmAqarDgyUxSnVtqHm2XGyx365v9PkeiWndq4cYeJndgrxqwCLjn2OnKFnnw==","signatures":[{"sig":"MEQCIDuZ4ZxMpNK8CjQVEzTRYSZWsQE6HX1V5x+aSnvwr4jqAiAVfnDdo9zcRfd6XPwQKwWzICogFVLfOitSyGNL1RtYTQ==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":8714,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdpbb8CRA9TVsSAnZWagAA4wQP/jNu4Wp0H7VAqetq85+n\nXrYKBBL1YpGm9cf7+97gKmVX0ry++ztyW2BcVXSgRaXMRU4Xd1w/aHrb2wFM\nZHjM6z7cfzIzFHU5G+u+/08M95IAoa95Ln1CODF5LhZRgJjfvaDE1E7zsq8E\nVgjKwa5uTxqvy3Sd1AOecbP/cnN2wlpsuD0JwoCbTWOETVqU+B0CQeYQHx3B\n6My+bQ/5Rslqx7qfu9KYod48pbtg8hkBbxxAAWba+cg6bLnBEhupO049rX7V\nwLXgrpXdhTz4UKTHzC/4rIAKc6A9DVjvHYIyNu1hR0AVLaYiD/kLNGr15hZw\nlPt7IXpFJi2NE0dMj2H1f7KbQR+uzJ0yV4woPX95Ufz38q7NHbQ6Ms018lDL\nDjROxvR/9hmBdTJtP3saG70CRy1cGdqQp+jHhtWyWA5f7h1pJyKUfH5uUb7F\nBIkk5pTiiISErLG51v/odr/rqXk0rY0EOnyV1ggI3+qK/ntS/lf5yjTAnTzV\nqlGSyLSO5pVam3BnK0kz4MODR/UOa7oX2WUMM5PtMk0+7nM1AQd5dlsXePW3\ndRdjP0Hhq09XW+WcPD2RfQWXgU5U2kcLVFwYKOBEHgcmHfAp4umQBdtul4Tz\npMsbiObeA6Ujx7ePT019ElC8Wg/4/lUzoEz2zo/PM9WpwfrkmWbTkcB+HHaN\n+Q0g\r\n=iZPP\r\n-----END PGP SIGNATURE-----\r\n"},"main":"lib/index.js","config":{"commitizen":{"path":"cz-conventional-changelog"}},"gitHead":"e87c0fc6a85d51e92716e4a17a1a084992cfaea1","scripts":{"pp":"npm run prepare","lint":"eslint src test","test":"ava --require babel-core/register","build":"babel -d ./ ./src","check":"npm outdated --depth 0","major":"pmm major","minor":"pmm minor","patch":"pmm patch","prepare":"npm run build && npm run validate","coverage":"nyc --reporter=lcov --reporter=text --reporter=html npm test","validate":"npm run lint && npm test","coveralls":"npm run coverage && cat ./coverage/lcov.info | coveralls && rm -rf ./coverage"},"_npmUser":{"name":"kelvincampelo","email":"kelvsousa@gmail.com"},"pre-commit":["validate"],"repository":{"url":"git+https://github.com/KelvinCampelo/zero-decimal-currencies.git","type":"git"},"_npmVersion":"6.11.3","description":"Get the smallest currency unit even it is a Zero Decimal Currency","directories":{},"_nodeVersion":"12.6.0","_hasShrinkwrap":false,"devDependencies":{"ava":"^2.4.0","nyc":"^14.1.1","pmm":"^2.0.0","escope":"^3.6.0","eslint":"^6.5.1","babel-cli":"^6.26.0","coveralls":"^3.0.7","babel-core":"^6.5.2","pre-commit":"^1.1.2","babel-eslint":"^10.0.3","babel-preset-env":"^1.7.0","cz-conventional-changelog":"^3.0.2","babel-plugin-transform-function-bind":"^6.5.2"},"_npmOperationalInternal":{"tmp":"tmp/zero-decimal-currencies_1.1.2_1571141371858_0.9488928604124534","host":"s3://npm-registry-packages"}},"1.1.3":{"name":"zero-decimal-currencies","version":"1.1.3","keywords":["zero-decimal","currencies","zero","decimal","currency","stripe","parse"],"author":{"url":"https://github.com/KelvinCampelo","name":"Kelvin Campelo","email":"kelvsousa@gmail.com"},"license":"MIT","_id":"zero-decimal-currencies@1.1.3","maintainers":[{"name":"kelvincampelo","email":"kelvsousa@gmail.com"},{"name":"magdielcas","email":"magdiel.camp@gmail.com"}],"homepage":"https://github.com/KelvinCampelo/zero-decimal-currencies#readme","bugs":{"url":"https://github.com/KelvinCampelo/zero-decimal-currencies/issues"},"dist":{"shasum":"e2e20141d00e6de16ae9fedfce0457203d2f67e3","tarball":"https://registry.npmjs.org/zero-decimal-currencies/-/zero-decimal-currencies-1.1.3.tgz","fileCount":5,"integrity":"sha512-LAfRDhzGjj4OPsfiR+Q3F7BO4TxxuICOVcSLOniNsE8fOsf9boxD+LAcESAb7FhMx5q7FEzvfbop7dRfsvrJ5w==","signatures":[{"sig":"MEQCIAYdWiDITASHbVDdUl4ysIxxDxe+14RFL5ZVkDpSuE/rAiA+2W+E1jwFhhAJTHGBLuuece/qHgQk9GzP5F9NukVb5w==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":9911,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdsI1ICRA9TVsSAnZWagAA8iAP/07BnW+BIKechW9PbpnS\nHB3CreDfsq7QMwRhjKAETu+1hwInqEn5Q2xSBNzrLI0EtJcm8rOMfG5HQnPi\nhqgzbQyulXndZFqWt7Q2ZGANQkLHzLNyS++dT3Lp5b3TW79mBA2QaUcxxn2M\nFEHofHyBKFB3ZiSt3GwXBLimnoXu3aXnoMarad+6kLvt0s0UGAl+eE+rtPza\nNiMG4vkjpcgfirrQANu58Q+8+mIP3moq4BUQWDs9OvTWAaEDBH0mAyo0v/Pz\nn4c4lMzhLbiU6sUwEqtji0u793VPkje21MoC7HFf+uZnbTpTbnANzAxheTpO\nZJ60NSEgPr/f8QhocRh3EYfSEbiSfet7TCWo33kQfa7v5dtvADzbbZwYGBTR\no/fbs1OCsP973E3ngq46pbVnOfo+t9We+S1dB/5QlA6jCYApyRbnhbeyTd3E\nuu6TI9SacKmQ+ov/F/w7HlSwuWIG9enKjc/EH3V61L4NtWKlbnRZGCLrFKkT\noVsCYaGdf1NUJ9CIKqfhKbBNyyY6mq+AI9g4Seyiig9DVfwOQngAyPQjl1rA\njb9gn5diA5UKWp6N2LFmkL42n+TOi8NOZpZy4EBu91CzysvLDSJ+L6nHY8Dm\niXsa0RYNrqrf0KyLqSaIm6PfH9/s+GepQC93xQ43SmKJFXKD79TVUEstPxLa\nwdFR\r\n=OOhV\r\n-----END PGP SIGNATURE-----\r\n"},"main":"lib/index.js","config":{"commitizen":{"path":"cz-conventional-changelog"}},"gitHead":"a71a04351fe514107686274d75f7e80589010494","scripts":{"pp":"npm run prepare","lint":"eslint src test","test":"ava --require babel-core/register","build":"babel -d ./ ./src","check":"npm outdated --depth 0","major":"pmm major","minor":"pmm minor","patch":"pmm patch","prepare":"npm run build && npm run validate","coverage":"nyc --reporter=lcov --reporter=text --reporter=html npm test","validate":"npm run lint && npm test","coveralls":"npm run coverage && cat ./coverage/lcov.info | coveralls && rm -rf ./coverage"},"_npmUser":{"name":"kelvincampelo","email":"kelvsousa@gmail.com"},"pre-commit":["validate"],"repository":{"url":"git+https://github.com/KelvinCampelo/zero-decimal-currencies.git","type":"git"},"_npmVersion":"6.11.3","description":"Get the smallest currency unit even it is a Zero Decimal Currency","directories":{},"_nodeVersion":"12.12.0","_hasShrinkwrap":false,"devDependencies":{"ava":"^2.4.0","nyc":"^14.1.1","pmm":"^2.0.0","escope":"^3.6.0","eslint":"^6.5.1","babel-cli":"^6.26.0","coveralls":"^3.0.7","babel-core":"^6.5.2","pre-commit":"^1.1.2","babel-eslint":"^10.0.3","babel-preset-env":"^1.7.0","cz-conventional-changelog":"^3.0.2","babel-plugin-transform-function-bind":"^6.5.2"},"_npmOperationalInternal":{"tmp":"tmp/zero-decimal-currencies_1.1.3_1571851592336_0.1624192145369121","host":"s3://npm-registry-packages"}},"1.2.0":{"name":"zero-decimal-currencies","version":"1.2.0","keywords":["zero-decimal","currencies","zero","decimal","currency","stripe","parse"],"author":{"url":"https://github.com/KelvinCampelo","name":"Kelvin Campelo","email":"kelvsousa@gmail.com"},"license":"MIT","_id":"zero-decimal-currencies@1.2.0","maintainers":[{"name":"kelvincampelo","email":"kelvsousa@gmail.com"},{"name":"magdielcas","email":"magdiel.camp@gmail.com"}],"homepage":"https://github.com/KelvinCampelo/zero-decimal-currencies#readme","bugs":{"url":"https://github.com/KelvinCampelo/zero-decimal-currencies/issues"},"ava":{"babel":true},"dist":{"shasum":"ef3cb28f48f7169ca0b39df035d195b6dcb90849","tarball":"https://registry.npmjs.org/zero-decimal-currencies/-/zero-decimal-currencies-1.2.0.tgz","fileCount":5,"integrity":"sha512-iZ0BuhUF7XacUpCrdx2Y+eAK5BUbw5bS7LrGQZ7/6R5Q16YF11DdyYU4bV7cAs2QxoAQ/LJcgNPbvZ7JTwi3qA==","signatures":[{"sig":"MEUCIQDTJ47+xO1HbgM51VrGmEob7ZkRVk60uwK12J26PSJKCAIgfLCUHRIEwaC++uMI52FqZK7GSahs+f7EPEqVWqPR0xc=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":11396,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJeQV43CRA9TVsSAnZWagAAXJQP/2G9xjOuQ9htOjDErw0s\nnhCjsAtKl2ou4R0rlFO5LwtLrVPSFF/ZN2kATlMJd6ezhPhzceWlZzyBoOrz\nYyF4BJF8Evy8EUecJs3pp1z/Wan+gA93blDnMVxOZ175L6SJ/mCNh8elYPm2\n/aRWGhTc/of0ssAtRTV5e5xKJp3ddgUZhGibnpUZmn0npzOFUB6aoTvy/ZSM\n6pWbQi31qmNooK2lqux59TARmQKTvQuPimvcgZTYOock5I+v23+dCJ9T+rNg\nSyuPzhglwIjTbnVWTkSDuO+s084A7pJeHHV3DMt9ygdA8IQE8Qq7ZaZhKMse\n54u6ngcWXFLUqqZDkw+wpHjZ1c2IW6Y/vhRrSRAY8ESuxE/y+em1Evj/nQC4\nSdnhl3tqmD9kQgETW8bh0rKLJgmItQtgoG/r93fFTwSaP5FRkH/y95Q/klqg\ngW1KPBcKCS4wKUNiPY9tVoDezQUFckOMjpRCvGpcjoktd0FHFqWKnTivSBQc\njF8VpIxpKUHW+ao84oist0aHBkDTsIs9g89WtfPGb0AFZvxitRD77NX66xET\ncJyaUkW+AyfmIItuw+e8vskCy11SeLJp2V45ETIUcTnYeMn03OX064Q/WL6k\n8fBfjIsu8W0XNBuU3N6uMqk9qq1pmr+Ysub9pZMNNL2GraHH/5yx0g2oQLZb\nGWJ5\r\n=rkAk\r\n-----END PGP SIGNATURE-----\r\n"},"main":"lib/index.js","config":{"commitizen":{"path":"cz-conventional-changelog"}},"gitHead":"8d0e64d7f46ac56a9da2dd092fdfdad4960813cb","scripts":{"pp":"npm run prepare","lint":"eslint src test","test":"ava --require @babel/register","build":"babel -d ./ ./src","check":"npm outdated --depth 0","major":"pmm major","minor":"pmm minor","patch":"pmm patch","prepare":"npm run build && npm run validate","coverage":"nyc --reporter=lcov --reporter=text --reporter=html npm test","validate":"npm run lint && npm test","coveralls":"npm run coverage && cat ./coverage/lcov.info | coveralls && rm -rf ./coverage"},"_npmUser":{"name":"kelvincampelo","email":"kelvsousa@gmail.com"},"pre-commit":["validate"],"repository":{"url":"git+https://github.com/KelvinCampelo/zero-decimal-currencies.git","type":"git"},"_npmVersion":"6.11.3","description":"Get the smallest currency unit even it is a Zero Decimal Currency","directories":{},"_nodeVersion":"12.12.0","_hasShrinkwrap":false,"devDependencies":{"ava":"^3.3.0","nyc":"^15.0.0","pmm":"^2.0.0","escope":"^3.6.0","eslint":"^6.8.0","coveralls":"^3.0.9","@ava/babel":"^1.0.1","@babel/cli":"^7.8.4","pre-commit":"^1.1.2","@babel/core":"^7.8.4","babel-eslint":"^10.0.3","@babel/register":"^7.8.3","@babel/preset-env":"^7.8.4","cz-conventional-changelog":"^3.1.0","@babel/plugin-syntax-function-bind":"^7.8.3"},"_npmOperationalInternal":{"tmp":"tmp/zero-decimal-currencies_1.2.0_1581342263217_0.359811760345895","host":"s3://npm-registry-packages"}},"1.5.0":{"name":"zero-decimal-currencies","version":"1.5.0","keywords":["zero-decimal","currencies","zero","decimal","currency","stripe","parse"],"author":{"url":"https://github.com/KelvinCampelo","name":"Kelvin Campelo","email":"kelvsousa@gmail.com"},"license":"MIT","_id":"zero-decimal-currencies@1.5.0","maintainers":[{"name":"kelvincampelo","email":"kelvsousa@gmail.com"},{"name":"magdielcas","email":"magdiel.camp@gmail.com"}],"homepage":"https://github.com/KelvinCampelo/zero-decimal-currencies#readme","bugs":{"url":"https://github.com/KelvinCampelo/zero-decimal-currencies/issues"},"ava":{"extensions":{"ts":"module"},"nodeArguments":["--import=tsimp"]},"dist":{"shasum":"45a7fef6922ba47ecd8fa0266cf0de0bf28244a2","tarball":"https://registry.npmjs.org/zero-decimal-currencies/-/zero-decimal-currencies-1.5.0.tgz","fileCount":14,"integrity":"sha512-8HEvTqeyNF42LdakO6T9dDELxF1cyXxmUHJAwf04GfwXbL0dFbfJShZZjg62p/BZD9xYO8v/C6qiW0chxIS8ZQ==","signatures":[{"sig":"MEQCIEkavK+p2zK6JJ78sZ3bAbzDxJaQ5GuH1QuwNiC0d8AAAiAuyv67fv/ZfGW1ATArJs6vsZPqGXJNeJscgPS7Fjcz8w==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":22830},"main":"dist/index.cjs","tsup":{"dts":true,"clean":true,"entry":["src/index.ts"],"format":["cjs","esm","iife"],"target":"es2022","platform":"neutral","tsconfig":"tsconfig.json"},"type":"module","types":"dist/index.d.ts","config":{"commitizen":{"path":"cz-conventional-changelog"}},"module":"dist/index.js","engines":{"node":">=18.0.0"},"exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js","default":"./dist/index.js","require":"./dist/index.cjs"}},"gitHead":"b36075fff1ec18c4fabcaa8005f8947cc9ea4e5e","scripts":{"pp":"pnpm run prepare","lint":"eslint src test.ts","test":"ava","build":"tsup ./src --format esm,cjs,iife","check":"pnpm outdated --depth 0","clean":"rm -rf ./dist ./coverage ./.tsimp ./node_modules","major":"pmm major","minor":"pmm minor","patch":"pmm patch","prepare":"pnpm run build && pnpm run validate","validate":"pnpm run lint && pnpm test","coveralls":"pnpm run test:coverage && cat ./coverage/lcov.info | coveralls && rm -rf ./coverage","test:coverage":"c8 --reporter=lcov ava"},"_npmUser":{"name":"kelvincampelo","email":"kelvsousa@gmail.com"},"pre-commit":["validate"],"repository":{"url":"git+https://github.com/KelvinCampelo/zero-decimal-currencies.git","type":"git"},"_npmVersion":"11.6.2","description":"Get the smallest currency unit even it is a Zero Decimal Currency","directories":{},"_nodeVersion":"24.11.1","_hasShrinkwrap":false,"devDependencies":{"c8":"^11.0.0","ava":"^6.4.1","nyc":"^18.0.0","pmm":"^2.0.0","tsup":"^8.5.1","tsimp":"^2.0.12","eslint":"^10.0.2","@swc/core":"^1.15.17","@eslint/js":"^10.0.1","pre-commit":"^1.2.2","typescript":"^5.9.3","@types/node":"^25.3.2","coveralls-next":"^6.0.1","typescript-eslint":"^8.56.1","cz-conventional-changelog":"^3.3.0"},"_npmOperationalInternal":{"tmp":"tmp/zero-decimal-currencies_1.5.0_1772220643036_0.952212570963237","host":"s3://npm-registry-packages-npm-production"}},"1.6.0":{"name":"zero-decimal-currencies","version":"1.6.0","description":"Get the smallest currency unit even it is a Zero Decimal Currency","main":"dist/index.cjs","module":"dist/index.js","types":"dist/index.d.ts","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js","require":"./dist/index.cjs","default":"./dist/index.js"}},"keywords":["zero-decimal","currencies","zero","decimal","currency","stripe","parse"],"license":"MIT","repository":{"type":"git","url":"git+https://github.com/KelvinCampelo/zero-decimal-currencies.git"},"scripts":{"clean":"rm -rf ./dist ./coverage ./.tsimp ./node_modules","build":"tsup ./src --format esm,cjs,iife","check":"pnpm outdated --depth 0","coveralls":"pnpm run test:coverage && cat ./coverage/lcov.info | coveralls && rm -rf ./coverage","lint":"eslint src test.ts","test":"ava","test:coverage":"c8 --reporter=lcov ava","validate":"pnpm run lint && pnpm test","prepare":"pnpm run build && pnpm run validate","pp":"pnpm run prepare","major":"pmm major","minor":"pmm minor","patch":"pmm patch"},"author":{"name":"Kelvin Campelo","email":"kelvsousa@gmail.com","url":"https://github.com/KelvinCampelo"},"pre-commit":["validate"],"devDependencies":{"@eslint/js":"^10.0.1","@swc/core":"^1.15.17","@types/node":"^25.3.2","ava":"^6.4.1","c8":"^11.0.0","coveralls-next":"^6.0.1","cz-conventional-changelog":"^3.3.0","eslint":"^10.0.2","nyc":"^18.0.0","pmm":"^2.0.0","pre-commit":"^1.2.2","tsimp":"^2.0.12","tsup":"^8.5.1","typescript":"^5.9.3","typescript-eslint":"^8.56.1"},"config":{"commitizen":{"path":"cz-conventional-changelog"}},"type":"module","ava":{"extensions":{"ts":"module"},"nodeArguments":["--import=tsimp"]},"tsup":{"entry":["src/index.ts"],"target":"es2022","platform":"neutral","dts":true,"format":["cjs","esm","iife"],"clean":true,"tsconfig":"tsconfig.json"},"engines":{"node":">=18.0.0"},"gitHead":"f1d976d02b754e8e622608e0c3583c7a8dd92e9b","_id":"zero-decimal-currencies@1.6.0","bugs":{"url":"https://github.com/KelvinCampelo/zero-decimal-currencies/issues"},"homepage":"https://github.com/KelvinCampelo/zero-decimal-currencies#readme","_nodeVersion":"24.11.1","_npmVersion":"11.6.2","dist":{"integrity":"sha512-wKH71bIE1qxnKD+J4N+zTSqQpYN5Q4QTDPYAzq3DhwjwE6/62VhIXguRWJp+EW9EdOhqQV5sgY9C39eVvVhqcQ==","shasum":"da86a4a7e5bc070d31baf2f0861ccf5f06be3c81","tarball":"https://registry.npmjs.org/zero-decimal-currencies/-/zero-decimal-currencies-1.6.0.tgz","fileCount":20,"unpackedSize":41733,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIQCUQ+FSTgcL4yWT4vJwZ49AtiT65TjNRMENqSFKTZN87wIgD4rjx1JtVsbS8qDd4vz4g9LEP0swNLJlKBuUfVUdYwk="}]},"_npmUser":{"name":"kelvincampelo","email":"kelvsousa@gmail.com"},"directories":{},"maintainers":[{"name":"kelvincampelo","email":"kelvsousa@gmail.com"},{"name":"magdielcas","email":"magdiel.camp@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/zero-decimal-currencies_1.6.0_1772221418618_0.18290943368759827"},"_hasShrinkwrap":false}},"time":{"created":"2019-10-14T18:09:19.511Z","modified":"2026-02-27T19:43:38.883Z","1.0.0":"2019-10-14T18:09:19.670Z","1.0.1":"2019-10-14T18:46:23.884Z","1.0.2":"2019-10-14T18:57:05.127Z","1.0.3":"2019-10-14T20:24:50.087Z","1.1.0":"2019-10-14T20:38:48.752Z","1.1.1":"2019-10-14T21:12:20.026Z","1.1.2":"2019-10-15T12:09:31.995Z","1.1.3":"2019-10-23T17:26:32.469Z","1.2.0":"2020-02-10T13:44:23.362Z","1.5.0":"2026-02-27T19:30:43.185Z","1.6.0":"2026-02-27T19:43:38.764Z"},"bugs":{"url":"https://github.com/KelvinCampelo/zero-decimal-currencies/issues"},"author":{"name":"Kelvin Campelo","email":"kelvsousa@gmail.com","url":"https://github.com/KelvinCampelo"},"license":"MIT","homepage":"https://github.com/KelvinCampelo/zero-decimal-currencies#readme","keywords":["zero-decimal","currencies","zero","decimal","currency","stripe","parse"],"repository":{"type":"git","url":"git+https://github.com/KelvinCampelo/zero-decimal-currencies.git"},"description":"Get the smallest currency unit even it is a Zero Decimal Currency","maintainers":[{"name":"kelvincampelo","email":"kelvsousa@gmail.com"},{"name":"magdielcas","email":"magdiel.camp@gmail.com"}],"readme":"<div align=\"center\">\n  <big><h1>Zero Decimal Currencies</h1></big>\n\n  <p>\n    <strong>The essential utility to handle currency conversions for Stripe and other payment providers.</strong>\n  </p>\n\n  <p>\n    <a href=\"https://npmjs.org/package/zero-decimal-currencies\">\n      <img src=\"https://img.shields.io/npm/v/zero-decimal-currencies.svg?style=flat-square\" alt=\"NPM Version\">\n    </a>\n    <a href=\"https://npmjs.org/package/zero-decimal-currencies\">\n      <img src=\"https://img.shields.io/npm/dm/zero-decimal-currencies.svg?style=flat-square\" alt=\"NPM Downloads\">\n    </a>\n    <a href=\"http://opensource.org/licenses/MIT\">\n      <img src=\"https://img.shields.io/npm/l/zero-decimal-currencies.svg?style=flat-square\" alt=\"License\">\n    </a>\n    <a href=\"https://github.com/KelvinCampelo/zero-decimal-currencies/actions/workflows/coveralls.yml\">\n      <img src=\"https://img.shields.io/github/actions/workflow/status/KelvinCampelo/zero-decimal-currencies/coveralls.yml?style=flat-square\" alt=\"Build Status\">\n    </a>\n    <a href=\"https://coveralls.io/github/KelvinCampelo/zero-decimal-currencies\">\n      <img src=\"https://img.shields.io/coveralls/KelvinCampelo/zero-decimal-currencies.svg?style=flat-square\" alt=\"Coverage\">\n    </a>\n    <a href=\"http://commitizen.github.io/cz-cli/\">\n      <img src=\"https://img.shields.io/badge/commitizen-friendly-brightgreen.svg?style=flat-square\" alt=\"Commitizen Friendly\">\n    </a>\n  </p>\n</div>\n\n---\n\n## 🚀 Overview\n\n`zero-decimal-currencies` is a lightweight, zero-dependency TypeScript library that solves a common headache in Fintech: **accurately converting currency amounts to their smallest units.**\n\nWhether you are charging **$10.00 (1000 cents)** or **¥1000 (1000 JPY)**, this library ensures your payment payloads are formatted correctly for providers like **Stripe**, **Adyen**, or **PayPal**, preventing rounding errors and accidental overcharges.\n\n### ✨ Key Features\n\n- ✅ **Full Support for Zero-Decimal Currencies**: Automatically handles JPY, KRW, CLP, and more.\n- ✅ **Three-Decimal Currency Logic**: Specialized handling for BHD, KWD, OMR, etc.\n- ✅ **Stripe Ready**: Built-in support to handle Stripe's trailing zero requirements.\n- ✅ **Robust Precision**: Avoids JavaScript `0.1 + 0.2` float math bugs internally without bulky dependencies like `decimal.js`.\n- ✅ **Precision Controls**: Built-in support for rounding vs. truncation (`noRound`).\n- ✅ **Rich Helpers**: Convert back `fromSmallestUnit`, check `isValidCurrency`, or fetch `getCurrencyInfo`.\n- ✅ **Native Localized Display**: Use standard `Intl.NumberFormat` output automatically configured per currency.\n- ✅ **Modern & Type-Safe**: Includes strict `CurrencyCode` union types for all ISO 4217 currencies, written in ESM & CommonJS.\n\n---\n\n## 📦 Installation\n\n```sh\nnpm install zero-decimal-currencies\n# or\npnpm add zero-decimal-currencies\n# or\nyarn add zero-decimal-currencies\n```\n\n---\n\n## 🛠 Usage\n\n### Basic Conversion (Default behavior)\n\nBy default, the default export converts a human-readable amount into the **smallest unit** (integer string) expected by payment gateways.\n\n```typescript\nimport toSmallestUnit from 'zero-decimal-currencies';\n\n// 💵 Standard Currencies (2 decimals)\ntoSmallestUnit(10.50, 'USD'); // \"1050\"\n\n// 💴 Zero-Decimal Currencies (0 decimals)\ntoSmallestUnit(100.51, 'JPY'); // \"101\" (rounded up)\n\n// 🇰🇼 Three-Decimal Currencies (3 decimals)\ntoSmallestUnit(15.778, 'KWD'); // \"15780\" (Stripe format, appends a zero)\n```\n\n### Advanced Helpers & Features\n\nWe provide several named exports to handle the complete payment lifecycle:\n\n```typescript\nimport { \n  display, \n  toStripeUnit, \n  fromSmallestUnit, \n  getCurrencyInfo, \n  isValidCurrency \n} from 'zero-decimal-currencies';\n\n// 1️⃣ Format for the User Interface with Intl Locales\ndisplay(1050, 'USD', { locale: 'en-US' }); // \"$10.50\"\ndisplay(1050, 'EUR', { locale: 'de-DE' }); // \"10,50 €\"\n\n// 2️⃣ Explicitly cast to Stripe Units (Semantic alias for the default export)\ntoStripeUnit(10.50, 'USD'); // \"1050\"\n\n// 3️⃣ Convert from Smallest Unit back to Major Unit (e.g. reading from a DB)\nfromSmallestUnit(1050, 'USD'); // 10.5\nfromSmallestUnit(100, 'JPY');  // 100\nfromSmallestUnit(15780, 'KWD'); // 15.78\n\n// 4️⃣ Validation & Metadata\nisValidCurrency('USD'); // true\nisValidCurrency('ABC'); // false\n\ngetCurrencyInfo('JPY'); // { decimals: 0 }\ngetCurrencyInfo('KWD'); // { decimals: 3 }\ngetCurrencyInfo('EUR'); // { decimals: 2 }\n```\n\n### Advanced Precision Options\n\nIf you need to bypass standard rounding behavior when converting down to smallest units:\n\n```typescript\nimport toSmallestUnit from 'zero-decimal-currencies';\n\n// noRound: true -> truncates instead of rounding\ntoSmallestUnit(15.7784, 'EUR', false, true); // \"1577\"\n```\n\n### API Reference\n\n| Parameter | Type | Required | Description |\n| :--- | :--- | :--- | :--- |\n| `amount` | `number \\| string` | Yes | The amount to convert. |\n| `currency` | `CurrencyCode \\| string` | Yes | ISO 4217 currency code (e.g., `USD`, `JPY`). |\n| `displayMode` | `boolean` | No | Legacy display mode. Recommended to use the `display()` named export instead. Default: `false`. |\n| `noRound` | `boolean` | No | If `true`, truncates decimals instead of rounding. Default: `false`. |\n\n---\n\n## 🌍 Supported Currencies\n\nThe library exports `type CurrencyCode` with all ISO 4217 standard codes for strict TypeScript autocomplete, and categorizes specific decimals internally for:\n- **Zero-Decimal**: BIF, CLP, DJF, GNF, JPY, KMF, KRW, MGA, PYG, RWF, UGX, VND, VUV, XAF, XOF, XPF.\n- **Three-Decimal**: BHD, IQD, JOD, KWD, LYD, OMR, TND.\n\n*(You can also access these lists natively via `ZERO_DECIMAL_CURRENCIES` and `THREE_DECIMAL_CURRENCIES` exports).*\n\n---\n\n## 🛠 Development\n\nThis repository uses **TypeScript** and **pnpm**.\n\n```bash\npnpm install\npnpm run build     # Outputs ESM, CJS, and IIFE to /dist\npnpm test          # Runs Ava test suite\npnpm run validate  # Lint + Test\n```\n\n---\n\n## 🤝 Contributors\n\nContributions are welcome! This repo is **Commitizen friendly**. Please follow the [Conventional Commits](https://www.conventionalcommits.org/) standard.\n\n<table>\n  <tr>\n    <td align=\"center\"><a href=\"https://github.com/KelvinCampelo\"><img src=\"https://avatars.githubusercontent.com/u/7349839?s=100&v=4\" width=\"100px;\" alt=\"Kelvin Campelo\"/><br /><sub><b>Kelvin Campelo</b></sub></a></td>\n    <td align=\"center\"><a href=\"https://github.com/MagdielCAS\"><img src=\"https://avatars.githubusercontent.com/u/7864626?s=100&v=4\" width=\"100px;\" alt=\"Magdiel Campelo\"/><br /><sub><b>Magdiel Campelo</b></sub></a></td>\n  </tr>\n</table>\n\n---\n\n## 📄 License\n\n[MIT](http://opensource.org/licenses/MIT) © Kelvin Campelo\n","readmeFilename":"README.md"}