{"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://registry-npm.ywwl.com/shasum-object/download/shasum-object-1.0.1.tgz","fileCount":10,"unpackedSize":10708,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEYCIQC5RCTN3HB/h5mv2Tkog9RA1tZsTw8e/V/UIbAjZSIqZQIhAIZ6mgEXHify9v6R0nNJdGfxc1AbwBN1XIb+oGrb5qCE"}],"size":4563,"noattachment":false,"key":"/shasum-object/-/shasum-object-1.0.1.tgz"},"_npmUser":{"name":"goto-bus-stop","email":"npm@asdf.kooi.me"},"directories":{},"maintainers":[{"name":"goto-bus-stop","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,"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","publish_time":1757588123602,"_cnpm_publish_time":1757588123602,"dist-tags":{"latest":"1.0.1"}}