{"_id":"@putout/operator-remove-files","_rev":"4160251","name":"@putout/operator-remove-files","description":"🐊Putout operator adds ability to remove files to plugins","dist-tags":{"latest":"1.1.0"},"maintainers":[{"name":"coderaiser","email":"mnemonic.enemy@gmail.com"}],"time":{"modified":"2026-03-01T20:37:57.000Z","created":"2026-02-16T19:28:37.158Z","1.1.0":"2026-02-18T21:54:14.496Z","1.0.0":"2026-02-16T19:28:37.158Z"},"users":{},"author":{"name":"coderaiser","email":"mnemonic.enemy@gmail.com","url":"https://github.com/coderaiser"},"repository":{"type":"git","url":"git+https://github.com/coderaiser/putout.git"},"versions":{"1.1.0":{"name":"@putout/operator-remove-files","version":"1.1.0","type":"module","author":{"name":"coderaiser","email":"mnemonic.enemy@gmail.com","url":"https://github.com/coderaiser"},"description":"🐊Putout operator adds ability to remove files to plugins","homepage":"https://github.com/coderaiser/putout/tree/master/packages/operator-remove-files#readme","main":"lib/remove-files.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/operator-filesystem":"^11.0.0"},"keywords":["putout","putout-operator","operator","remove-files"],"devDependencies":{"@putout/eslint-flat":"^4.0.0","@putout/plugin-nodejs":"*","@putout/test":"^15.0.0","c8":"^10.0.0","eslint":"^10.0.0","eslint-plugin-putout":"^31.0.0","madrun":"^13.0.0","montag":"^1.2.1","nodemon":"^3.0.1","supertape":"^12.0.0","try-catch":"^4.0.0"},"peerDependencies":{"putout":">=42"},"license":"MIT","engines":{"node":">=22"},"publishConfig":{"access":"public"},"_id":"@putout/operator-remove-files@1.1.0","gitHead":"a5787b24452ec7099ce742adacb3a1beff994d2a","bugs":{"url":"https://github.com/coderaiser/putout/issues"},"_nodeVersion":"22.22.0","_npmVersion":"11.4.2","dist":{"shasum":"cd9188251c56d18a5f95e4c8921fff22c86acb66","size":2086,"noattachment":false,"key":"/@putout/operator-remove-files/-/@putout/operator-remove-files-1.1.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/@putout/operator-remove-files/download/@putout/operator-remove-files-1.1.0.tgz"},"_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/operator-remove-files_1.1.0_1771451654332_0.10708167001963154"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2026-02-18T21:54:14.496Z","publish_time":1771451654496,"_source_registry_name":"default","_cnpm_publish_time":1771451654496},"1.0.0":{"name":"@putout/operator-remove-files","version":"1.0.0","type":"module","author":{"name":"coderaiser","email":"mnemonic.enemy@gmail.com","url":"https://github.com/coderaiser"},"description":"🐊Putout operator adds ability to remove files to plugins","homepage":"https://github.com/coderaiser/putout/tree/master/packages/operator-remove-files#readme","main":"lib/remove-files.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/operator-filesystem":"^11.0.0"},"keywords":["putout","putout-operator","operator","remove-files"],"devDependencies":{"@putout/eslint-flat":"^4.0.0","@putout/plugin-nodejs":"*","@putout/test":"^15.0.0","c8":"^10.0.0","eslint":"^10.0.0","eslint-plugin-putout":"^30.0.0","madrun":"^12.0.0","montag":"^1.2.1","nodemon":"^3.0.1","supertape":"^12.0.0","try-catch":"^4.0.0"},"peerDependencies":{"putout":">=42"},"license":"MIT","engines":{"node":">=22"},"publishConfig":{"access":"public"},"_id":"@putout/operator-remove-files@1.0.0","gitHead":"fe7d380b69cfdda52eedc2954ec50fccd6b2d352","bugs":{"url":"https://github.com/coderaiser/putout/issues"},"_nodeVersion":"24.11.1","_npmVersion":"11.4.2","dist":{"shasum":"3838cb052be5215663d98905753d4c5678029066","size":2099,"noattachment":false,"key":"/@putout/operator-remove-files/-/@putout/operator-remove-files-1.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/@putout/operator-remove-files/download/@putout/operator-remove-files-1.0.0.tgz"},"_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/operator-remove-files_1.0.0_1771270117009_0.733324203243052"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2026-02-16T19:28:37.158Z","publish_time":1771270117158,"_source_registry_name":"default","_cnpm_publish_time":1771270117158}},"readme":"# @putout/operator-remove-files [![NPM version][NPMIMGURL]][NPMURL]\n\n[NPMIMGURL]: https://img.shields.io/npm/v/@putout/operator-remove-files.svg?style=flat&longCache=true\n[NPMURL]: https://npmjs.org/package/@putout/operator-remove-files \"npm\"\n\n????[**Putout**](https://github.com/coderaiser/putout) operator adds ability to create plugins that removes files.\n\n## Install\n\n```\nnpm i putout @putout/operator-remove-files\n```\n\n## API\n\n```js\nimport {operator} from 'putout';\n\nconst {removeFiles} = operator;\n\nexport const {\n    report,\n    fix,\n    scan,\n} = removeFiles(['.DS_Store']);\n```\n\n### `dismiss`\n\nAny rule that uses this operator can pass `dismiss` to avoid removing files:\n\n```json\n{\n    \"rules\": {\n        \"putout/remove-files\": [\"on\", {\n            \"dismiss\": [\".DS_Store\"]\n        }]\n    }\n}\n```\n\n## License\n\nMIT\n","_attachments":{},"homepage":"https://github.com/coderaiser/putout/tree/master/packages/operator-remove-files#readme","bugs":{"url":"https://github.com/coderaiser/putout/issues"},"license":"MIT"}