{"_id":"@elnurh/reconcile","_rev":"2-06fd5d4c26177ec033faf151b66ca688","name":"@elnurh/reconcile","dist-tags":{"latest":"0.1.1"},"versions":{"0.1.0":{"name":"@elnurh/reconcile","version":"0.1.0","keywords":["decimal","sum","zero"],"license":"MIT","_id":"@elnurh/reconcile@0.1.0","maintainers":[{"name":"elnurh","email":"stop.showers_1p@icloud.com"}],"dist":{"shasum":"8d077055e6339b6cc518952d1f998de1f6600324","tarball":"https://registry.npmjs.org/@elnurh/reconcile/-/reconcile-0.1.0.tgz","fileCount":12,"integrity":"sha512-11GV7gqcGJKMgTcUp5ExiREUk2dywBOPz79ebQJt9X8FE70Fhzu7B4k00cbncg8Rkal3d77RENS+UU52NX5Mzg==","signatures":[{"sig":"MEYCIQDjR7fazUNcYQG4mGrv+Xhy20I4iSZ8N664OawLXczsywIhAPW4tz5bp2KpJxySOTEC5q3x/7PeMVdQ5VsziOlh60k+","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":6947},"main":"dist/index.js","types":"dist/index.d.ts","engines":{"node":">=14"},"exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js","require":"./dist/index.js"}},"gitHead":"92745de97cfa479bf54ecffe7d77d0e61ea805d5","private":false,"scripts":{"test":"vitest run","build":"tsc","test:watch":"vitest","prepublishOnly":"npm run build"},"_npmUser":{"name":"elnurh","email":"stop.showers_1p@icloud.com"},"_npmVersion":"10.9.8","description":"Utilities for decimal arithmetics.","directories":{},"_nodeVersion":"22.23.1","_hasShrinkwrap":false,"devDependencies":{"vitest":"^4.1.10","typescript":"^5.5.3","@types/node":"^26.1.2"},"_npmOperationalInternal":{"tmp":"tmp/reconcile_0.1.0_1785458305130_0.8218950882027536","host":"s3://npm-registry-packages-npm-production"}},"0.1.1":{"name":"@elnurh/reconcile","version":"0.1.1","description":"Utilities for decimal arithmetics.","author":{"name":"Elnur Hajiyev"},"homepage":"https://github.com/elnurvl/reconcile","main":"dist/index.js","types":"dist/index.d.ts","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js","require":"./dist/index.js"}},"scripts":{"build":"tsc","prepublishOnly":"npm run build","test":"vitest run","test:watch":"vitest"},"keywords":["decimal","sum","zero"],"license":"MIT","engines":{"node":">=14"},"devDependencies":{"@types/node":"^26.1.2","typescript":"^5.5.3","vitest":"^4.1.10"},"private":false,"_id":"@elnurh/reconcile@0.1.1","gitHead":"92d45a34d5884d8d2677fd4804690501f18e41b0","_nodeVersion":"22.23.1","_npmVersion":"10.9.8","dist":{"integrity":"sha512-cel9/vjO1OhZ+jiw5ruSQNXTaTGQPO0VUdN7hOp1hl+NOglJWCf2e3Rj2hD1Rdbwk3axQHBf1Yuohkosz0eFow==","shasum":"520aa0cab3b9eb426c75f1ed0d72d7d1cc171426","tarball":"https://registry.npmjs.org/@elnurh/reconcile/-/reconcile-0.1.1.tgz","fileCount":12,"unpackedSize":7030,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEYCIQCoFx4dy+OKFzQ3xCaqMFmuniumE+bfo6pS4/Y9efHBrQIhAK2qlsWsA47UioudAtozGhwJe7JDAIwgY28nGCZBEaBn"}]},"_npmUser":{"name":"elnurh","email":"stop.showers_1p@icloud.com"},"directories":{},"maintainers":[{"name":"elnurh","email":"stop.showers_1p@icloud.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/reconcile_0.1.1_1785458864509_0.6244225975266968"},"_hasShrinkwrap":false}},"time":{"created":"2026-07-31T00:38:24.963Z","modified":"2026-07-31T00:47:44.796Z","0.1.0":"2026-07-31T00:38:25.292Z","0.1.1":"2026-07-31T00:47:44.649Z"},"license":"MIT","keywords":["decimal","sum","zero"],"description":"Utilities for decimal arithmetics.","maintainers":[{"name":"elnurh","email":"stop.showers_1p@icloud.com"}],"readme":"# Reconcile library\n\nThis library provides a simple function to check if sum of given numbers is zero.\nThe function accepts an arbitrary number of arguments of type `number` or `bigint`.\n\n```typescript\nisSumEqualsToZero(3, -1, -0.5, -0.25, -0.25, -1) // true\nisSumEqualsToZero(3, -1, -0.5, -0.25) // false\nisSumEqualsToZero(3n, -2n, -1) // true\n```\n\n## Tests\nTDD was used for implementation of `reconcile_improved.ts`, but the initial variant is also covered by tests.\nTo run tests:\n```shell\nnpm run test\n```\n\n## CLI usage\nA simple CLI entrypoint is also provided:\n\n```shell\nnpx tsx main.ts 3 -2 -1\n```\n\n_Disclosure: An AI agent was used only to configure the testing framework and\nboilerplate configurations for a publishable library.\nFor the research and choosing an implementation approach search engines, documentations, forums and AI chatbots were used._","readmeFilename":"README.md","homepage":"https://github.com/elnurvl/reconcile","author":{"name":"Elnur Hajiyev"}}