{"name":"@putout/cli-cache","version":"4.2.0","keywords":["putout","cli","cli-putout","cache"],"author":{"url":"https://github.com/coderaiser","name":"coderaiser","email":"mnemonic.enemy@gmail.com"},"license":"MIT","_id":"@putout/cli-cache@4.2.0","homepage":"https://github.com/coderaiser/putout/tree/master/packages/cli-cache#readme","bugs":{"url":"https://github.com/coderaiser/putout/issues"},"tag":false,"dist":{"shasum":"781df2f96ff8d11c8522cde1cfcd9243b1aa5592","tarball":"http://registry-npm.ywwl.com/@putout/cli-cache/download/@putout/cli-cache-4.2.0.tgz","fileCount":9,"integrity":"sha512-71dwC19w0tCWWdq9EtMjhpumlWlTzC6fW6POik87SufDmiGLPqj8C1nUTkux+qpdqV/aPQkq1snwcUcbO+5b0A==","signatures":[{"sig":"MEUCIQDJ0rMnV9BN8Azp5xifgn1NszMKV3pDk5RhLtGcypPTygIgWp3Cq+ECtci4eKEx0OGkS9vgBa4sIOAijzNBcxrj5j4=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":9790,"size":3503,"noattachment":false,"key":"/@putout/cli-cache/-/@putout/cli-cache-4.2.0.tgz"},"main":"lib/cache.js","type":"commonjs","engines":{"node":">=18"},"gitHead":"2bf24553b82e122436be925317b5d26fd0b66de0","release":false,"scripts":{"lint":"madrun lint","test":"madrun test","report":"madrun report","coverage":"madrun coverage","fix:lint":"madrun fix:lint","fresh:lint":"madrun fresh:lint","lint:fresh":"madrun lint:fresh","watch:test":"madrun watch:test"},"_npmUser":{"name":"coderaiser","email":"mnemonic.enemy@gmail.com"},"changelog":false,"repository":{"url":"git+https://github.com/coderaiser/putout.git","type":"git"},"_npmVersion":"11.1.0","description":"The cache of Places found by 🐊Putout","directories":{},"_nodeVersion":"22.14.0","dependencies":{"find-up":"^7.0.0","try-catch":"^3.0.1","imurmurhash":"^0.1.4","try-to-catch":"^3.0.0","find-cache-dir":"^5.0.0","file-entry-cache":"^10.0.2","json-stable-stringify-without-jsonify":"^1.0.1"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"c8":"^10.0.0","lerna":"^6.0.1","eslint":"^9.0.0","madrun":"^10.0.0","putout":"*","nodemon":"^3.0.1","supertape":"^10.0.0","mock-require":"^3.0.3","eslint-plugin-n":"^17.0.0","@putout/eslint-flat":"^2.0.0","eslint-plugin-putout":"^24.0.0"},"_npmOperationalInternal":{"tmp":"tmp/cli-cache_4.2.0_1739880527793_0.8901111495836764","host":"s3://npm-registry-packages-npm-production"},"readme":"# @putout/cli-cache [![NPM version][NPMIMGURL]][NPMURL]\n\n[NPMIMGURL]: https://img.shields.io/npm/v/@putout/cli-cache.svg?style=flat&longCache=true\n[NPMURL]: https://npmjs.org/package/@putout/cli-cache \"npm\"\n\nStore to `cache` information about files processed by 🐊[Putout](https://github.com/coderaiser/putout) to nearest `node_modules/.cache` directory.\n\n## Install\n\n```\nnpm i @putout/cli-cache\n```\n\n## Example\n\n```js\nimport {createCache} from '@putout/cli-cache';\n\nconst fileCache = await createCache({\n    version,\n    cache,\n    fresh,\n});\n\nconst places = fileCache.getPlaces(name);\n\nfileCache.canUseCache(name, options);\nfileCache.removeEntry(name);\nfileCache.setInfo(name, places, options);\nfileCache.reconcile();\n```\n\n## License\n\nMIT\n","publish_time":1739880527959,"maintainers":[{"name":"coderaiser","email":"mnemonic.enemy@gmail.com"}],"_cnpm_publish_time":1739880527959,"dist-tags":{"latest":"6.0.2"}}