{"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":"http://registry-npm.ywwl.com/read-cache/download/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,"size":1852,"noattachment":false,"key":"/read-cache/-/read-cache-1.0.1.tgz"},"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"},"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":1787148251226,"_cnpm_publish_time":1787148251226,"dist-tags":{"latest":"1.0.2"}}