{"_id":"@dencioo/greatest-sum","_rev":"2-7c7e51eca8613729601b1cd0b09a68a6","name":"@dencioo/greatest-sum","dist-tags":{"latest":"1.0.1"},"versions":{"1.0.0":{"name":"@dencioo/greatest-sum","version":"1.0.0","keywords":["sum","array","2d-array","calculator"],"author":{"name":"Dean Harley Pal","email":"paldeanharley@gmail.com"},"license":"ISC","_id":"@dencioo/greatest-sum@1.0.0","maintainers":[{"name":"dencioo","email":"paldeanharley@gmail.com"}],"dist":{"shasum":"d365f44c9d269e31cb2809b3089ee0caeeb2516e","tarball":"https://registry.npmjs.org/@dencioo/greatest-sum/-/greatest-sum-1.0.0.tgz","fileCount":3,"integrity":"sha512-C4dUfiwBQ0wIUEEHrT3+Kz3YbVbrIgzUpwWI1pEQv4bMjn+j/0VFUQr/BIvwgVr7u/KapHAZ6SJzmUrMiSWSqw==","signatures":[{"sig":"MEUCIQDA3/AZJv2EcvLhHqkD7Ps/EivCsp+cVpLRyci7hWS2BgIgRrSE7I5HX2WVrgmoodMBrzO88a0Wl0NR9N9AwNrE2sA=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":2353},"main":"index.js","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"_npmUser":{"name":"dencioo","email":"paldeanharley@gmail.com"},"_npmVersion":"10.9.2","description":"Greatest sum calculator for 3-row slices in 2D arrays","directories":{},"_nodeVersion":"22.16.0","_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/greatest-sum_1.0.0_1755008711072_0.8064891465084323","host":"s3://npm-registry-packages-npm-production"}},"1.0.1":{"name":"@dencioo/greatest-sum","version":"1.0.1","description":"Greatest sum calculator for 3-row slices in 2D arrays","main":"index.js","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"keywords":["sum","array","2d-array","calculator"],"author":{"name":"Dean Harley Pal","email":"paldeanharley@gmail.com"},"license":"ISC","repository":{"type":"git","url":"git+https://github.com/dencioo/greatest-sum.git"},"_id":"@dencioo/greatest-sum@1.0.1","gitHead":"84e39ab33dea79bedd39c09e44296d64f4e3bf51","bugs":{"url":"https://github.com/dencioo/greatest-sum/issues"},"homepage":"https://github.com/dencioo/greatest-sum#readme","_nodeVersion":"22.16.0","_npmVersion":"10.9.2","dist":{"integrity":"sha512-CHkvNw0MYx9lVKIwupl/PP54wi44i1vCknxzfSpRenF/a1I/BLVfBEYRhOJhjnWb6fMPthp7HgDCUz/kxa/3VQ==","shasum":"10f7c4294d12eb89ead4db8deb0b8ce9222294e9","tarball":"https://registry.npmjs.org/@dencioo/greatest-sum/-/greatest-sum-1.0.1.tgz","fileCount":3,"unpackedSize":2448,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEQCICgeN5NdmYoWdz1rmt5baKvodSStHkmXGuwjV2Wozj3/AiBX35VeZSOklM1+4eU3xXlJgpAv1rFsg7xh0SVdA2YTrg=="}]},"_npmUser":{"name":"dencioo","email":"paldeanharley@gmail.com"},"directories":{},"maintainers":[{"name":"dencioo","email":"paldeanharley@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/greatest-sum_1.0.1_1755009326448_0.9271156175147246"},"_hasShrinkwrap":false}},"time":{"created":"2025-08-12T14:25:11.000Z","modified":"2025-08-12T14:35:26.847Z","1.0.0":"2025-08-12T14:25:11.239Z","1.0.1":"2025-08-12T14:35:26.659Z"},"author":{"name":"Dean Harley Pal","email":"paldeanharley@gmail.com"},"license":"ISC","keywords":["sum","array","2d-array","calculator"],"description":"Greatest sum calculator for 3-row slices in 2D arrays","maintainers":[{"name":"dencioo","email":"paldeanharley@gmail.com"}],"readme":"# @dencioo/greatest-sum\n\nCalculate the greatest sum of three consecutive rows by column in a 2D array.\n\n## Installation\n\n```bash\nnpm install @dencioo/greatest-sum\n```\n```js\nconst getGreatestSum = require('@dencioo/greatest-sum');\n\nconst array = [\n  [10, 20, 40],\n  [40, 50, 60],\n  [70, -80, 90],\n];\n\nconsole.log(getGreatestSum(array));\n// Output: 120 (or whatever the result is)\n```\n\n## API\n\n### `getGreatestSum(array)`\n\n- **array**: A 2D array where each sub-array has the same length and there are at least 3 rows.\n\n- **Returns**: The greatest sum of three consecutive rows by column.\n\n- Returns `'Invalid input'` if the input array is invalid.\n","readmeFilename":"README.md","homepage":"https://github.com/dencioo/greatest-sum#readme","repository":{"type":"git","url":"git+https://github.com/dencioo/greatest-sum.git"},"bugs":{"url":"https://github.com/dencioo/greatest-sum/issues"}}