{"_id":"@putout/cli-staged","_rev":"5-0b128974be2632373facf54b3be2f851","name":"@putout/cli-staged","dist-tags":{"latest":"3.0.0"},"versions":{"1.0.0":{"name":"@putout/cli-staged","version":"1.0.0","keywords":["putout","putout-plugin","plugin","gitignore"],"author":{"url":"https://github.com/coderaiser","name":"coderaiser","email":"mnemonic.enemy@gmail.com"},"license":"MIT","_id":"@putout/cli-staged@1.0.0","maintainers":[{"name":"coderaiser","email":"mnemonic.enemy@gmail.com"}],"homepage":"https://github.com/coderaiser/putout/tree/master/packages/cli-staged#readme","bugs":{"url":"https://github.com/coderaiser/putout/issues"},"tag":false,"dist":{"shasum":"201add7821b485d0f7443b9a7125616256ad85d6","tarball":"https://registry.npmjs.org/@putout/cli-staged/-/cli-staged-1.0.0.tgz","fileCount":4,"integrity":"sha512-Odo2P9DUwi2wSGq17FOKcLaC/m8msoqNvUhmK9669ucJmJL5zFTMbqnRQpquFDdcbkKOnvggZ8cspD/3H14KUg==","signatures":[{"sig":"MEYCIQDn+HbZPYt/v4fCMTcDf0wyAc1joR8ifVTA2VYNvPy7QQIhAKdBWuhfaiy5/xOL2kk85CU2aYFfSIvH53yyi4KAEwgT","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":4509},"main":"lib/staged.js","type":"commonjs","engines":{"node":">=16"},"gitHead":"a044c85abebb7e1b86df632bb12d570dde555cc2","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://github.com/coderaiser/putout.git","type":"git"},"_npmVersion":"9.6.6","description":"handle staged","directories":{},"_nodeVersion":"20.2.0","dependencies":{"once":"^1.4.0","fullstore":"^3.0.0","try-to-catch":"^3.0.1","@putout/git-status-porcelain":"^3.0.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"c8":"^7.5.0","lerna":"^6.0.1","eslint":"^8.0.1","madrun":"^9.0.0","putout":"*","nodemon":"^2.0.1","supertape":"^8.0.0","mock-require":"^3.0.3","eslint-plugin-n":"^16.0.0","eslint-plugin-putout":"^17.0.0"},"_npmOperationalInternal":{"tmp":"tmp/cli-staged_1.0.0_1686817580400_0.026199157949989393","host":"s3://npm-registry-packages"}},"1.1.0":{"name":"@putout/cli-staged","version":"1.1.0","keywords":["putout","putout-plugin","plugin","gitignore"],"author":{"url":"https://github.com/coderaiser","name":"coderaiser","email":"mnemonic.enemy@gmail.com"},"license":"MIT","_id":"@putout/cli-staged@1.1.0","maintainers":[{"name":"coderaiser","email":"mnemonic.enemy@gmail.com"}],"homepage":"https://github.com/coderaiser/putout/tree/master/packages/cli-staged#readme","bugs":{"url":"https://github.com/coderaiser/putout/issues"},"tag":false,"dist":{"shasum":"d856000c9173b56b89146b9dc13ebf3ac1d63ee9","tarball":"https://registry.npmjs.org/@putout/cli-staged/-/cli-staged-1.1.0.tgz","fileCount":4,"integrity":"sha512-JJAxlNvFqOv1GhourIZfhSe+RPtWMuJxMjX9HdaEi5UmbQiOHziRZ5s0nOTriCbYtez5DpVs0mv5j6zvd3rHCA==","signatures":[{"sig":"MEQCIDVliqs6pbKzBT3B9I3uoFFcZT045VvFw4lDayqiiLemAiB3N/w4s4+zInzQRLccT+V0l1ObqdH4cjUSnUmnwQYDgw==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":4532},"main":"lib/staged.js","type":"commonjs","engines":{"node":">=16"},"gitHead":"aba4a1cbdd56b57a86b4c6b32d24b9b496d7813a","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://github.com/coderaiser/putout.git","type":"git"},"_npmVersion":"9.6.6","description":"handle staged","directories":{},"_nodeVersion":"20.2.0","dependencies":{"once":"^1.4.0","fullstore":"^3.0.0","try-to-catch":"^3.0.1","@putout/git-status-porcelain":"^3.0.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"c8":"^7.5.0","lerna":"^6.0.1","eslint":"^8.0.1","madrun":"^9.0.0","putout":"*","nodemon":"^2.0.1","supertape":"^8.0.0","mock-require":"^3.0.3","eslint-plugin-n":"^16.0.0","eslint-plugin-putout":"^17.0.0"},"_npmOperationalInternal":{"tmp":"tmp/cli-staged_1.1.0_1686817981416_0.803921327664791","host":"s3://npm-registry-packages"}},"2.0.0":{"name":"@putout/cli-staged","version":"2.0.0","keywords":["putout","putout-plugin","plugin","gitignore"],"author":{"url":"https://github.com/coderaiser","name":"coderaiser","email":"mnemonic.enemy@gmail.com"},"license":"MIT","_id":"@putout/cli-staged@2.0.0","maintainers":[{"name":"coderaiser","email":"mnemonic.enemy@gmail.com"}],"homepage":"https://github.com/coderaiser/putout/tree/master/packages/cli-staged#readme","bugs":{"url":"https://github.com/coderaiser/putout/issues"},"tag":false,"dist":{"shasum":"5b0e6ec7becaf7fc74e1fa19bfb9cf4c64405922","tarball":"https://registry.npmjs.org/@putout/cli-staged/-/cli-staged-2.0.0.tgz","fileCount":4,"integrity":"sha512-1+aexizZqldj/Wj3wH6A5qq+BrDWwDFFL8J6NZDvyIQJsP+1P7Z+xnGsuofqXc3ii5aoaIVNPsHwOgnBcQHvzw==","signatures":[{"sig":"MEYCIQCSoYtS2TpBb6Qk9W+3Kv8LoxLEp2boGfruobibF6GVeQIhAPjXySTXEoNECPOh58jAMzIgkSCA84qx4bbzYc4nUuDr","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":4738},"main":"lib/staged.js","type":"module","engines":{"node":">=20"},"gitHead":"0cf166ac24c7b1dda766a90038471077b67c1df7","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.4.2","description":"handle staged","directories":{},"_nodeVersion":"25.2.1","dependencies":{"once":"^1.4.0","fullstore":"^3.0.0","try-to-catch":"^3.0.1","@putout/git-status-porcelain":"^3.0.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"c8":"^10.0.0","eslint":"^10.0.0-alpha.0","madrun":"^11.0.0","putout":"*","nodemon":"^3.0.1","supertape":"^11.0.3","eslint-plugin-n":"^17.0.0","eslint-plugin-putout":"^29.0.0"},"_npmOperationalInternal":{"tmp":"tmp/cli-staged_2.0.0_1766782809703_0.5481122954076776","host":"s3://npm-registry-packages-npm-production"}},"2.0.1":{"name":"@putout/cli-staged","version":"2.0.1","keywords":["putout","putout-plugin","plugin","gitignore"],"author":{"url":"https://github.com/coderaiser","name":"coderaiser","email":"mnemonic.enemy@gmail.com"},"license":"MIT","_id":"@putout/cli-staged@2.0.1","maintainers":[{"name":"coderaiser","email":"mnemonic.enemy@gmail.com"}],"homepage":"https://github.com/coderaiser/putout/tree/master/packages/cli-staged#readme","bugs":{"url":"https://github.com/coderaiser/putout/issues"},"tag":false,"dist":{"shasum":"396c80d9a1f3bc321e1cd477e3004a2f1a0f1c71","tarball":"https://registry.npmjs.org/@putout/cli-staged/-/cli-staged-2.0.1.tgz","fileCount":4,"integrity":"sha512-desKnIEuY+V7r4YMviAJEtM87EX1aahDmK6wfD5Rvmy9cGNH5zUesmdSrUhEit8kzbVn/yrNWkUcTAoZ7Q5dYA==","signatures":[{"sig":"MEUCIQD11mnoFxCcv2xzZzQOp/jCFIz8L8rVEp4K/mVhbQXlugIgQGtcjRbbTVJbiUFV0RVhlPwQRae6lo7szlzifGl/OgE=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":4716},"main":"lib/staged.js","type":"module","engines":{"node":">=20"},"gitHead":"c5aed5d9611b9c80f70404b32e2c765437ac00ce","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.4.2","description":"handle staged","directories":{},"_nodeVersion":"25.2.1","dependencies":{"fullstore":"^3.0.0","try-to-catch":"^3.0.1","@putout/git-status-porcelain":"^3.0.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"c8":"^10.0.0","eslint":"^10.0.0-alpha.0","madrun":"^11.0.0","putout":"*","nodemon":"^3.0.1","supertape":"^11.0.3","eslint-plugin-n":"^17.0.0","eslint-plugin-putout":"^29.0.0"},"_npmOperationalInternal":{"tmp":"tmp/cli-staged_2.0.1_1766852240887_0.4737994448002327","host":"s3://npm-registry-packages-npm-production"}},"3.0.0":{"name":"@putout/cli-staged","version":"3.0.0","type":"module","author":{"name":"coderaiser","email":"mnemonic.enemy@gmail.com","url":"https://github.com/coderaiser"},"description":"handle staged","homepage":"https://github.com/coderaiser/putout/tree/master/packages/cli-staged#readme","main":"lib/staged.js","release":false,"tag":false,"changelog":false,"repository":{"type":"git","url":"git+https://github.com/coderaiser/putout.git"},"scripts":{"test":"madrun test","watch:test":"madrun watch:test","lint":"madrun lint","fresh:lint":"madrun fresh:lint","lint:fresh":"madrun lint:fresh","fix:lint":"madrun fix:lint","coverage":"madrun coverage","report":"madrun report"},"dependencies":{"@putout/git-status-porcelain":"^3.0.0","fullstore":"^4.0.0","try-to-catch":"^4.0.0"},"keywords":["putout","putout-plugin","plugin","gitignore"],"devDependencies":{"c8":"^10.0.0","eslint":"^10.0.0-alpha.0","eslint-plugin-n":"^17.0.0","eslint-plugin-putout":"^29.0.0","madrun":"^12.0.0","nodemon":"^3.0.1","putout":"*","supertape":"^12.0.0"},"license":"MIT","engines":{"node":">=22"},"publishConfig":{"access":"public"},"_id":"@putout/cli-staged@3.0.0","gitHead":"dae81e551c2b26ac4b8817937e027a650232b2cf","bugs":{"url":"https://github.com/coderaiser/putout/issues"},"_nodeVersion":"24.11.1","_npmVersion":"11.4.2","dist":{"integrity":"sha512-LgU6tsUz6ZqRphED6dMRqUZKH5Jk13MhUXJg3QasuWAC1O6sM4CK5LaunqQ+iYAbemc+pg7q5/Yhqh3gHzZZIw==","shasum":"6c02724c2ac6cf92148bf907dc5e313d59416e6a","tarball":"https://registry.npmjs.org/@putout/cli-staged/-/cli-staged-3.0.0.tgz","fileCount":4,"unpackedSize":4720,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEYCIQCN+l4T0lkLadtzIjrhsO4qM+Cq2ldQffyBJmzCjnyWdgIhAP8NZnKVzCsVLplGHkX7eyD46BPN2Fb4fJzq8qKe3EXO"}]},"_npmUser":{"name":"coderaiser","email":"mnemonic.enemy@gmail.com"},"directories":{},"maintainers":[{"name":"coderaiser","email":"mnemonic.enemy@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/cli-staged_3.0.0_1768128540595_0.8284209137792748"},"_hasShrinkwrap":false}},"time":{"created":"2023-06-15T08:26:20.321Z","modified":"2026-01-11T10:49:00.941Z","1.0.0":"2023-06-15T08:26:20.544Z","1.1.0":"2023-06-15T08:33:01.575Z","2.0.0":"2025-12-26T21:00:09.854Z","2.0.1":"2025-12-27T16:17:21.042Z","3.0.0":"2026-01-11T10:49:00.742Z"},"bugs":{"url":"https://github.com/coderaiser/putout/issues"},"author":{"name":"coderaiser","email":"mnemonic.enemy@gmail.com","url":"https://github.com/coderaiser"},"license":"MIT","homepage":"https://github.com/coderaiser/putout/tree/master/packages/cli-staged#readme","keywords":["putout","putout-plugin","plugin","gitignore"],"repository":{"type":"git","url":"git+https://github.com/coderaiser/putout.git"},"description":"handle staged","maintainers":[{"name":"coderaiser","email":"mnemonic.enemy@gmail.com"}],"readme":"# @putout/cli-staged [![NPM version][NPMIMGURL]][NPMURL]\n\n[NPMIMGURL]: https://img.shields.io/npm/v/@putout/cli-staged.svg?style=flat&longCache=true\n[NPMURL]: https://npmjs.org/package/@putout/cli-staged \"npm\"\n\nGet list of staged by `git` files for 🐊[**Putout**](https://github.com/coderaiser/putout).\n\n## Install\n\n```\nnpm i @putout/cli-staged\n```\n\n## Examples\n\n```js\nimport {get, set} from '@putout/cli-staged';\nimport {findUp} from 'find-up';\nimport {tryToCatch} from 'try-to-catch';\n\nconst [error, names] = await tryToCatch(get, {\n    findUp,\n    isSupported: Boolean,\n});\n\nconst stagedNames = await set({\n    findUp,\n});\n```\n\n## License\n\nMIT\n","readmeFilename":"README.md"}