{"_id":"read-cache@1.0.2","bugs":{"url":"https://github.com/TrySound/read-cache/issues"},"dist":{"shasum":"3bfa40e27574216bd893276ced75d81e6649ca52","tarball":"http://registry-npm.ywwl.com/read-cache/download/read-cache-1.0.2.tgz","fileCount":4,"integrity":"sha512-/peqiBB/n07gQGLsWaHho3WfvUyRscw0gYTsEFMhrIe/nWLkYaf5SbKYjGYqtRV3aPwykJgF2VEMo1ac4bnsGA==","signatures":[{"sig":"MEYCIQDaQ6agYu6I7utrMj7YhRXXmfwa4VFbGMPel86YUbv0egIhAKyEmqjch7IC+VgiWmzsUEUBqpS7Jcs5A6syAuQUbExw","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"},{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIB4l3MsJIfs0CIWS05+tz/6qJRdE89Lz59ynLkBOS98iAiEA1pSkdnbHitaylDKR03DGoL2gdOQtNkCekRLNUtOXfFo="}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/read-cache@1.0.2","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":4328,"size":1895,"noattachment":false,"key":"/read-cache/-/read-cache-1.0.2.tgz"},"main":"index.js","name":"read-cache","author":{"name":"Bogdan Chadkin","email":"opensource@trysound.io"},"gitHead":"37f8285474b2abba6775fd4b3e68f9830f29ffd9","license":"MIT","scripts":{"test":"node test.js"},"version":"1.0.2","_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"oidc:5c0bf4ee-0734-45b8-a26e-7a665fa8bd72"}},"homepage":"https://github.com/TrySound/read-cache#readme","keywords":["fs","read","cache"],"repository":{"url":"git+https://github.com/TrySound/read-cache.git","type":"git"},"_npmVersion":"11.19.0","description":"Reads and caches the entire contents of a file until it is modified","directories":{},"maintainers":[{"name":"trysound","email":"opensource@trysound.io"}],"_nodeVersion":"24.19.0","_hasShrinkwrap":false,"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/read-cache_1.0.2_1787163235173_0.9906030329479234"},"readme":"# read-cache [![CI](https://github.com/TrySound/read-cache/actions/workflows/ci.yml/badge.svg)](https://github.com/TrySound/read-cache/actions/workflows/ci.yml)\n\nReads and caches the entire contents of a file until it is modified.\n\n\n## Install\n\n```\n$ npm i read-cache\n```\n\n\n## Usage\n\n```js\n// foo.js\nvar readCache = require('read-cache');\n\nreadCache('foo.js').then(function (contents) {\n\tconsole.log(contents);\n});\n```\n\n\n## API\n\n### readCache(path[, encoding])\n\nReturns a promise that resolves with the file's contents.\n\n### readCache.sync(path[, encoding])\n\nReturns the content of the file.\n\n### readCache.get(path[, encoding])\n\nReturns the content of cached file or null.\n\n### readCache.clear()\n\nClears the contents of the cache.\n\n\n## License\n\nMIT © [Bogdan Chadkin](mailto:opensource@trysound.io)\n","publish_time":1787163235300,"_cnpm_publish_time":1787163235300,"dist-tags":{"latest":"1.0.2"}}