{"maintainers":[{"name":"anonymous","email":"npm@asdf.kooi.me"}],"keywords":["buffer","hash","object","sha1","shasum"],"dist-tags":{"latest":"1.0.1"},"author":{"name":"Renée Kooi","email":"renee@kooi.me"},"description":"get the shasum of a buffer or object","readme":"# shasum-object\n\nGet the shasum of a buffer or object.\n\n[Description](#description) - [Install](#install) - [Usage](#usage) - [License: Apache-2.0](#license)\n\n[![npm][npm-image]][npm-url]\n[![actions][actions-image]][actions-url]\n[![standard][standard-image]][standard-url]\n\n[npm-image]: https://img.shields.io/npm/v/shasum-object.svg?style=flat-square\n[npm-url]: https://www.npmjs.com/package/shasum-object\n[actions-image]: https://img.shields.io/github/actions/workflow/status/goto-bus-stop/shasum-object/ci.yml\n[actions-url]: https://github.com/goto-bus-stop/shasum-object/actions/workflows/ci.yml\n[standard-image]: https://img.shields.io/badge/code%20style-standard-brightgreen.svg?style=flat-square\n[standard-url]: http://npm.im/standard\n\n## Description\n\nshasum-object computes a hash string for strings, buffers, and JSON objects.\n\nSha1 is used by default, but other algorithms provided by Node.js are supported.\n\nshasum-object is committed to supporting all Node.js versions 0.8 and up.\n\nThis is a spiritual successor to [shasum](https://github.com/dominictarr/shasum).\n\n## Install\n\n```\nnpm install shasum-object\n```\n\n## Usage\n\n```js\nvar fs = require('fs')\nvar shasum = require('shasum-object')\n\nshasum('of a string')\nshasum(fs.readFileSync('of-a-file.txt'))\n\nshasum({\n  of: ['an', 'object']\n})\n```\n\n## API\n### `shasum(input, algorithm = 'sha1', encoding = 'hex')`\n\nCompute the hash for the given input.\n- `input` - a string, buffer or JSON object. objects are stringified using [`fast-safe-stringify`](https://github.com/davidmarkclements/fast-safe-stringify).\n- `algorithm` - the hash algorithm to use. see [`crypto.createHash`](https://nodejs.org/api/crypto.html#crypto_crypto_createhash_algorithm_options).\n- `encoding` - how to encode the hash result. see [`hash.digest`](https://nodejs.org/api/crypto.html#crypto_hash_digest_encoding).\n\n## License\n\n[Apache-2.0](LICENSE.md)\n","repository":{"type":"git","url":"git+https://github.com/goto-bus-stop/shasum-object.git"},"bugs":{"url":"https://github.com/goto-bus-stop/shasum-object/issues"},"license":"Apache-2.0","versions":{"1.0.0":{"name":"shasum-object","version":"1.0.0","keywords":["buffer","hash","object","sha1","shasum"],"author":{"name":"Renée Kooi","email":"renee@kooi.me"},"license":"Apache-2.0","_id":"shasum-object@1.0.0","maintainers":[{"name":"anonymous","email":"renee@kooi.me"}],"homepage":"https://github.com/goto-bus-stop/shasum-object","bugs":{"url":"https://github.com/goto-bus-stop/shasum-object/issues"},"dist":{"shasum":"0b7b74ff5b66ecf9035475522fa05090ac47e29e","tarball":"http://repository.ncinga.com/nexus/content/repositories/npm-js-registry/shasum-object/-/shasum-object-1.0.0.tgz","fileCount":9,"integrity":"sha512-Iqo5rp/3xVi6M4YheapzZhhGPVs0yZwHj7wvwQ1B9z8H6zk+FEnI7y3Teq7qwnekfEhu8WmG2z0z4iWZaxLWVg==","signatures":[{"sig":"MEQCIGrsmqWNX5TQB89WHNAlmOMfVi3bAe3xcrwGyPRiwVeXAiAKUIX5AdvGgktN1zxuhUZmStEdJauVLkwxw9VryfAr6g==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":8606,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJduC43CRA9TVsSAnZWagAAHd4P/jQfosZI5Bbq7aFgVwb2\nDbYphbu2oIkDrTROrnRuX3i+FDDZjRxNkyO5gxG8tLlHYwvqeG0780KfpVXd\n7N9mvObeOSJVcVYcQttGVUwnYo7urdrxFDHC4MB5SgEMePfXcVeMrab/Ve+E\ntY2kCmbe50WD21qQAYOMsjMNT/3jR3hlQ1dcFkaniu74sjM5LPPJ9GqPVIx3\n5KVGq4JJpGP7qtddQFYNr3G+aUdNlPvitdiRPDTOB3h9lbpza8gI0eKz3b5U\ndmjncPCgpLU0gROq15UTgQ8iXPaZJXKOhNl5lyUr0iPCl1UkPn8Fi3bOGm5n\nLQhB36u3V/syVa/nlsTbLcUkrkgZeuGU1XlaqN1Jo/8EBHoT/mP8l/NPs+PX\n5RXGeSgUwMUbqDvhZySMSvpTDdlLMDaNk7wtHCvLFc5LN0xpB0r3OkShoefI\n5HGpXXJWjmgByLYbAN39V2jzIHBk8MrqoC6xUaz+6nelD9RqdKwuMdYHv9VO\nb2L305gHj8cTSC09UTMQYtRDG3QaATjf20LLiBvAnIadZz7+f8fc/tjfp6fD\nBkev8cUcQIPdzs2/E6CHsZwMiEcpBASEGzzLu2oIQKKXf9AcjuL9JsiF9jyP\npGLcRf3SrtDCpYHPXsGDfCp7widrUGpzjqw2ssYRsOmnux1UO6cc5cH8GILM\n61+r\r\n=wQbR\r\n-----END PGP SIGNATURE-----\r\n"},"main":"index.js","gitHead":"b7c0dfaa764433dc6e317d574b33606027a44f5d","scripts":{"test":"standard && node test"},"_npmUser":{"name":"anonymous","email":"renee@kooi.me"},"repository":{"url":"git+https://github.com/goto-bus-stop/shasum-object.git","type":"git"},"_npmVersion":"6.12.0","description":"get the shasum of a buffer or object","directories":{},"_nodeVersion":"12.13.0","dependencies":{"fast-safe-stringify":"^2.0.7"},"_hasShrinkwrap":false,"devDependencies":{"tape":"^4.10.0","standard":"^14.3.1","safe-buffer":"^5.2.0"},"_npmOperationalInternal":{"tmp":"tmp/shasum-object_1.0.0_1572351542680_0.36970881709449666","host":"s3://npm-registry-packages"}},"1.0.1":{"name":"shasum-object","description":"get the shasum of a buffer or object","version":"1.0.1","author":{"name":"Renée Kooi","email":"renee@kooi.me"},"bin":{"shasum-object":"bin.js"},"bugs":{"url":"https://github.com/goto-bus-stop/shasum-object/issues"},"dependencies":{"fast-safe-stringify":"^2.0.7"},"devDependencies":{"safe-buffer":"^5.2.0","standard":"^17.1.0","tape":"^5.0.0"},"homepage":"https://github.com/goto-bus-stop/shasum-object","keywords":["buffer","hash","object","sha1","shasum"],"license":"Apache-2.0","main":"index.js","repository":{"type":"git","url":"git+https://github.com/goto-bus-stop/shasum-object.git"},"scripts":{"lint":"standard","test":"node test"},"_id":"shasum-object@1.0.1","gitHead":"bdf97c21190d0b7ff6bea5186ae37e1c4e220c39","_nodeVersion":"24.6.0","_npmVersion":"11.6.0","dist":{"integrity":"sha512-SsC+1tW7XKQ/94D4k1JhLmjDFpVGET/Nf54jVDtbavbALf8Zhp0Td9zTlxScjMW6nbEIrpADtPWfLk9iCXzHDQ==","shasum":"a377d40f8ce2ffd6e03299939fe9f2ad95cf6b61","tarball":"http://repository.ncinga.com/nexus/content/repositories/npm-js-registry/shasum-object/-/shasum-object-1.0.1.tgz","fileCount":10,"unpackedSize":10708,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEYCIQC5RCTN3HB/h5mv2Tkog9RA1tZsTw8e/V/UIbAjZSIqZQIhAIZ6mgEXHify9v6R0nNJdGfxc1AbwBN1XIb+oGrb5qCE"}]},"_npmUser":{"name":"anonymous","email":"npm@asdf.kooi.me"},"directories":{},"maintainers":[{"name":"anonymous","email":"npm@asdf.kooi.me"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/shasum-object_1.0.1_1757588123414_0.20781877521403747"},"_hasShrinkwrap":false}},"name":"shasum-object","time":{"created":"2019-10-29T12:19:02.679Z","modified":"2025-09-11T10:55:23.766Z","1.0.0":"2019-10-29T12:19:02.786Z","1.0.1":"2025-09-11T10:55:23.602Z"},"readmeFilename":"README.md","homepage":"https://github.com/goto-bus-stop/shasum-object"}