{"_id":"read-cache","_rev":"6-ab889ce61626b7e5dc1c202f2f76fd57","name":"read-cache","dist-tags":{"latest":"1.0.2"},"versions":{"1.0.0":{"name":"read-cache","version":"1.0.0","keywords":["fs","read","cache"],"author":{"name":"Bogdan Chadkin","email":"trysound@yandex.ru"},"license":"MIT","_id":"read-cache@1.0.0","maintainers":[{"name":"trysound","email":"trysound@yandex.ru"}],"homepage":"https://github.com/TrySound/read-cache#readme","bugs":{"url":"https://github.com/TrySound/read-cache/issues"},"dist":{"shasum":"e664ef31161166c9751cdbe8dbcf86b5fb58f774","tarball":"https://registry.npmjs.org/read-cache/-/read-cache-1.0.0.tgz","integrity":"sha512-Owdv/Ft7IjOgm/i0xvNDZ1LrRANRfew4b2prF3OWMQLxLfu3bS8FVhCsrSCMK4lR56Y9ya+AThoTpDCTxCmpRA==","signatures":[{"sig":"MEUCICvnI8tO/ZAxqFZmwkj7TTqIlsJ4vM6MOldegYQoOVVgAiEAkMVE6m55VuG3Y4lKI8bwt76YTuv0jwTPa5gsQQI9t44=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}]},"main":"index.js","_from":".","files":["index.js"],"_shasum":"e664ef31161166c9751cdbe8dbcf86b5fb58f774","gitHead":"d44d4fcae1b3ed2ee5f22cf7ad2ead6f665949ae","scripts":{"test":"ava"},"_npmUser":{"name":"trysound","email":"trysound@yandex.ru"},"repository":{"url":"git+https://github.com/TrySound/read-cache.git","type":"git"},"_npmVersion":"3.3.9","description":"Reads and caches the entire contents of a file until it is modified","directories":{},"_nodeVersion":"0.12.7","dependencies":{"pify":"^2.3.0"},"devDependencies":{"ava":"^0.9.1","del":"^2.2.0"}},"1.0.1":{"name":"read-cache","version":"1.0.1","keywords":["fs","read","cache"],"author":{"name":"Bogdan Chadkin","email":"trysound@yandex.ru"},"license":"MIT","_id":"read-cache@1.0.1","maintainers":[{"name":"trysound","email":"opensource@trysound.io"}],"homepage":"https://github.com/TrySound/read-cache#readme","bugs":{"url":"https://github.com/TrySound/read-cache/issues"},"dist":{"shasum":"b472a73bbbd3c9c8fc157d4e724f5b0a2c147e7c","tarball":"https://registry.npmjs.org/read-cache/-/read-cache-1.0.1.tgz","fileCount":4,"integrity":"sha512-vmdQ4JEAaAINu1pc2H9HdZIeL2+IQehMpelB7BMNiNIA+mFxA5/02ObFUhEHkNAtNZOBS7kFCZxziUr4ho1j7A==","signatures":[{"sig":"MEUCIQCkP63vUes/jydfzCBQeKsQOo1iZjIOBWbzLuLOtSrQGgIgHhJkrPTxawkZVCjO6qaAmCh1h0U/3N9oPPHuMMxUm7o=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"},{"sig":"MEQCIA8CGiP6WEFzw5SZCMvFfyi1pCG+BjDLtrus9Ecd8ShtAiBoApXcYNtoFF/Rf0iCcIJsCunx7vsw+Bg6gDRvsbOgGA==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/read-cache@1.0.1","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":4060},"main":"index.js","gitHead":"966041e4323afa062158307813f1ef2effde569f","scripts":{"test":"node test.js"},"_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"oidc:5c0bf4ee-0734-45b8-a26e-7a665fa8bd72"}},"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":{},"_nodeVersion":"24.19.0","dependencies":{"pify":"^2.3.0"},"_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/read-cache_1.0.1_1787148251126_0.7009170770734177","host":"s3://npm-registry-packages-npm-production"}},"1.0.2":{"_id":"read-cache@1.0.2","bugs":{"url":"https://github.com/TrySound/read-cache/issues"},"dist":{"shasum":"3bfa40e27574216bd893276ced75d81e6649ca52","tarball":"https://registry.npmjs.org/read-cache/-/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},"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"}}},"time":{"created":"2016-01-11T01:53:14.064Z","modified":"2026-08-19T18:13:55.705Z","1.0.0":"2016-01-11T01:53:14.064Z","1.0.1":"2026-08-19T14:04:11.226Z","1.0.2":"2026-08-19T18:13:55.300Z"},"bugs":{"url":"https://github.com/TrySound/read-cache/issues"},"author":{"name":"Bogdan Chadkin","email":"opensource@trysound.io"},"license":"MIT","homepage":"https://github.com/TrySound/read-cache#readme","keywords":["fs","read","cache"],"repository":{"url":"git+https://github.com/TrySound/read-cache.git","type":"git"},"description":"Reads and caches the entire contents of a file until it is modified","maintainers":[{"name":"trysound","email":"opensource@trysound.io"}],"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","readmeFilename":"README.md"}