{"_id":"@putout/cli-match","_rev":"4158795","name":"@putout/cli-match","description":"convert \"rules\" section to \"match\" in .putout.json","dist-tags":{"latest":"3.0.1"},"maintainers":[{"name":"coderaiser","email":"mnemonic.enemy@gmail.com"}],"time":{"modified":"2026-03-01T20:33:06.000Z","created":"2021-08-10T07:59:13.795Z","3.0.1":"2025-12-31T11:39:56.656Z","3.0.0":"2025-12-30T22:07:18.778Z","2.2.1":"2025-12-30T21:44:50.903Z","2.2.0":"2023-08-27T14:17:49.137Z","2.0.0":"2022-12-02T17:01:11.011Z","1.0.1":"2021-09-28T12:29:10.598Z","1.0.0":"2021-08-10T07:59:13.795Z"},"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":{"3.0.1":{"name":"@putout/cli-match","version":"3.0.1","author":{"name":"coderaiser","email":"mnemonic.enemy@gmail.com","url":"https://github.com/coderaiser"},"description":"convert \"rules\" section to \"match\" in .putout.json","homepage":"https://github.com/coderaiser/putout/tree/master/packages/cli-match#readme","main":"lib/match.js","type":"module","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":{"try-catch":"^4.0.2","try-to-catch":"^4.0.0"},"keywords":["putout","cli"],"devDependencies":{"@putout/eslint-flat":"^3.0.0","c8":"^10.0.0","eslint":"^10.0.0-alpha.0","eslint-plugin-n":"^17.0.0","eslint-plugin-putout":"^29.0.0","madrun":"^11.0.0","nodemon":"^3.0.1","putout":"*","supertape":"^11.0.3"},"license":"MIT","engines":{"node":">=20"},"publishConfig":{"access":"public"},"_id":"@putout/cli-match@3.0.1","gitHead":"e0fe8e7614d2c1a1f8c52215f51d80885fa38382","bugs":{"url":"https://github.com/coderaiser/putout/issues"},"_nodeVersion":"25.2.1","_npmVersion":"11.4.2","dist":{"shasum":"283c087fac7b92d5d1b34666955a4cd2caedfc41","size":2399,"noattachment":false,"key":"/@putout/cli-match/-/@putout/cli-match-3.0.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/@putout/cli-match/download/@putout/cli-match-3.0.1.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/cli-match_3.0.1_1767181196522_0.726436902373452"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2025-12-31T11:39:56.656Z","publish_time":1767181196656,"_source_registry_name":"default","_cnpm_publish_time":1767181196656},"3.0.0":{"name":"@putout/cli-match","version":"3.0.0","author":{"name":"coderaiser","email":"mnemonic.enemy@gmail.com","url":"https://github.com/coderaiser"},"description":"convert \"rules\" section to \"match\" in .putout.json","homepage":"https://github.com/coderaiser/putout/tree/master/packages/cli-match#readme","main":"lib/match.js","type":"module","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":{"try-catch":"^4.0.2","try-to-catch":"^3.0.0"},"keywords":["putout","cli"],"devDependencies":{"@putout/eslint-flat":"^3.0.0","c8":"^10.0.0","eslint":"^10.0.0-alpha.0","eslint-plugin-n":"^17.0.0","eslint-plugin-putout":"^29.0.0","madrun":"^11.0.0","nodemon":"^3.0.1","putout":"*","supertape":"^11.0.3"},"license":"MIT","engines":{"node":">=20"},"publishConfig":{"access":"public"},"_id":"@putout/cli-match@3.0.0","gitHead":"626a73df7651e4b56076124155f9124a0b40e51b","bugs":{"url":"https://github.com/coderaiser/putout/issues"},"_nodeVersion":"25.2.1","_npmVersion":"11.4.2","dist":{"shasum":"a5500c3e46cde6cb116391691160a90ca8594022","size":2394,"noattachment":false,"key":"/@putout/cli-match/-/@putout/cli-match-3.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/@putout/cli-match/download/@putout/cli-match-3.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/cli-match_3.0.0_1767132438609_0.9764749872832381"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2025-12-30T22:07:18.778Z","publish_time":1767132438778,"_source_registry_name":"default","_cnpm_publish_time":1767132438778},"2.2.1":{"name":"@putout/cli-match","version":"2.2.1","author":{"name":"coderaiser","email":"mnemonic.enemy@gmail.com","url":"https://github.com/coderaiser"},"description":"convert \"rules\" section to \"match\" in .putout.json","homepage":"https://github.com/coderaiser/putout/tree/master/packages/cli-match#readme","main":"lib/match.js","type":"module","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":{"try-catch":"^3.0.1","try-to-catch":"^3.0.0"},"keywords":["putout","cli"],"devDependencies":{"@putout/eslint-flat":"^3.0.0","c8":"^10.0.0","eslint":"^10.0.0-alpha.0","eslint-plugin-n":"^17.0.0","eslint-plugin-putout":"^29.0.0","madrun":"^11.0.0","nodemon":"^3.0.1","putout":"*","supertape":"^11.0.3"},"license":"MIT","engines":{"node":">=16"},"publishConfig":{"access":"public"},"_id":"@putout/cli-match@2.2.1","gitHead":"245293e6a83c994b21b7e3af4934b215a95ff864","bugs":{"url":"https://github.com/coderaiser/putout/issues"},"_nodeVersion":"25.2.1","_npmVersion":"11.4.2","dist":{"shasum":"ccd1d447df5912f0147ec79aa7004541f88389da","size":2391,"noattachment":false,"key":"/@putout/cli-match/-/@putout/cli-match-2.2.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/@putout/cli-match/download/@putout/cli-match-2.2.1.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/cli-match_2.2.1_1767131090760_0.6895384230552108"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2025-12-30T21:44:50.903Z","publish_time":1767131090903,"_source_registry_name":"default","_cnpm_publish_time":1767131090903},"2.2.0":{"name":"@putout/cli-match","version":"2.2.0","author":{"name":"coderaiser","email":"mnemonic.enemy@gmail.com","url":"https://github.com/coderaiser"},"description":"convert \"rules\" section to \"match\" in .putout.json","homepage":"https://github.com/coderaiser/putout/tree/master/packages/cli-match#readme","main":"lib/match.js","type":"module","release":false,"tag":false,"changelog":false,"repository":{"type":"git","url":"git://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":{"try-catch":"^3.0.0","try-to-catch":"^3.0.0"},"keywords":["putout"],"devDependencies":{"c8":"^8.0.0","eslint":"^8.0.1","eslint-plugin-n":"^16.0.0","eslint-plugin-putout":"^19.0.0","lerna":"^6.0.1","madrun":"^9.0.0","nodemon":"^3.0.1","putout":"*","supertape":"^8.0.0"},"license":"MIT","engines":{"node":">=16"},"publishConfig":{"access":"public"},"gitHead":"39899e3c8782be892fea6036fa66f04104b63aca","bugs":{"url":"https://github.com/coderaiser/putout/issues"},"_id":"@putout/cli-match@2.2.0","_nodeVersion":"16.20.1","_npmVersion":"9.6.6","dist":{"shasum":"c057d583364917fc3309c5f41db0b17af247a46c","size":2377,"noattachment":false,"key":"/@putout/cli-match/-/@putout/cli-match-2.2.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/@putout/cli-match/download/@putout/cli-match-2.2.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","tmp":"tmp/cli-match_2.2.0_1693145868554_0.3718860642758208"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2023-08-27T14:17:49.137Z","publish_time":1693145869137,"_source_registry_name":"default","_cnpm_publish_time":1693145869137},"2.0.0":{"name":"@putout/cli-match","version":"2.0.0","author":{"name":"coderaiser","email":"mnemonic.enemy@gmail.com","url":"https://github.com/coderaiser"},"description":"convert \"rules\" section to \"match\" in .putout.json","homepage":"https://github.com/coderaiser/putout/tree/master/packages/cli-match#readme","main":"lib/match.js","commitType":"colon","type":"module","release":false,"tag":false,"changelog":false,"repository":{"type":"git","url":"git://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":{"try-catch":"^3.0.0","try-to-catch":"^3.0.0"},"keywords":["putout"],"devDependencies":{"@putout/test":"^5.0.0","c8":"^7.5.0","escover":"^2.1.0","eslint":"^8.0.1","eslint-plugin-n":"^15.2.4","eslint-plugin-putout":"^16.0.0","lerna":"^6.0.1","madrun":"^9.0.0","nodemon":"^2.0.1","putout":"*","supertape":"^8.0.0"},"license":"MIT","engines":{"node":">=16"},"publishConfig":{"access":"public"},"gitHead":"35d828ccc09ac7564ab4a34ecee24bd809861cd0","bugs":{"url":"https://github.com/coderaiser/putout/issues"},"_id":"@putout/cli-match@2.0.0","_nodeVersion":"18.12.1","_npmVersion":"9.1.3","dist":{"shasum":"82f9fc3d7960d56ef6eddcbcb10c660c8034cf88","size":2409,"noattachment":false,"key":"/@putout/cli-match/-/@putout/cli-match-2.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/@putout/cli-match/download/@putout/cli-match-2.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","tmp":"tmp/cli-match_2.0.0_1670000470836_0.435499996225029"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2022-12-02T17:19:16.010Z","publish_time":1670000471011,"_cnpm_publish_time":1670000471011},"1.0.1":{"name":"@putout/cli-match","version":"1.0.1","author":{"name":"coderaiser","email":"mnemonic.enemy@gmail.com","url":"https://github.com/coderaiser"},"description":"convert \"rules\" section to \"match\" in .putout.json","homepage":"http://github.com/coderaiser/putout","main":"lib/match.js","type":"module","release":false,"tag":false,"changelog":false,"repository":{"type":"git","url":"git://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":{"try-catch":"^3.0.0","try-to-catch":"^3.0.0"},"keywords":["putout"],"devDependencies":{"@putout/test":"^3.0.0","c8":"^7.5.0","eslint":"^8.0.0-beta.0","eslint-plugin-node":"^11.0.0","eslint-plugin-putout":"^10.0.0","lerna":"^4.0.0","madrun":"^8.0.1","nodemon":"^2.0.1","putout":"*","supertape":"^6.0.0"},"license":"MIT","engines":{"node":">=14"},"publishConfig":{"access":"public"},"bugs":{"url":"https://github.com/coderaiser/putout/issues"},"_id":"@putout/cli-match@1.0.1","_nodeVersion":"16.8.0","_npmVersion":"7.21.0","dist":{"shasum":"689d932cbcff72a20572397b1a1058321f93b7de","size":2316,"noattachment":false,"key":"/@putout/cli-match/-/@putout/cli-match-1.0.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/@putout/cli-match/download/@putout/cli-match-1.0.1.tgz"},"_npmUser":{"name":"coderaiser","email":"mnemonic.enemy@gmail.com"},"directories":{},"maintainers":[{"name":"coderaiser","email":"mnemonic.enemy@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/cli-match_1.0.1_1632832150393_0.3705068588691265"},"_hasShrinkwrap":false,"publish_time":1632832150598,"_cnpm_publish_time":1632832150598,"_cnpmcore_publish_time":"2021-12-16T21:05:13.728Z"},"1.0.0":{"name":"@putout/cli-match","version":"1.0.0","author":{"name":"coderaiser","email":"mnemonic.enemy@gmail.com","url":"https://github.com/coderaiser"},"description":"convert \"rules\" section to \"match\" in .putout.json","homepage":"http://github.com/coderaiser/putout","main":"lib/match.js","type":"module","release":false,"tag":false,"changelog":false,"repository":{"type":"git","url":"git://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":{"try-catch":"^3.0.0","try-to-catch":"^3.0.0"},"keywords":["putout"],"devDependencies":{"@putout/test":"^3.0.0","c8":"^7.5.0","eslint":"^7.6.0","eslint-plugin-node":"^11.0.0","eslint-plugin-putout":"^8.0.0","lerna":"^4.0.0","madrun":"^8.0.1","nodemon":"^2.0.1","putout":"*","supertape":"^5.0.0"},"license":"MIT","engines":{"node":">=14"},"publishConfig":{"access":"public"},"bugs":{"url":"https://github.com/coderaiser/putout/issues"},"_id":"@putout/cli-match@1.0.0","_nodeVersion":"16.6.0","_npmVersion":"7.19.1","dist":{"shasum":"e807b0697e689b3fc7ac6d72a68fb6d9addb95f3","size":2288,"noattachment":false,"key":"/@putout/cli-match/-/@putout/cli-match-1.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/@putout/cli-match/download/@putout/cli-match-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","tmp":"tmp/cli-match_1.0.0_1628582353658_0.6638128387449413"},"_hasShrinkwrap":false,"publish_time":1628582353795,"_cnpm_publish_time":1628582353795,"_cnpmcore_publish_time":"2021-12-16T21:05:13.922Z"}},"readme":"# @putout/cli-match [![NPM version][NPMIMGURL]][NPMURL]\n\n[NPMIMGURL]: https://img.shields.io/npm/v/@putout/cli-match.svg?style=flat&longCache=true\n[NPMURL]: https://npmjs.org/package/@putout/cli-match \"npm\"\n\nRead `.putout.json` and convert `rules`  into `match`.\n\n## Install\n\n```\nnpm i @putout/cli-match\n```\n\n```diff\n{\n-   \"rules\": {\n-       \"remove-debugger\": \"on\"\n+   \"match\": {\n+       \"*.md\": {\n+           \"remove-debugger\": \"on\"\n+       }\n    }\n}\n```\n\n## Example\n\n```js\nimport {cwd} from 'node:process';\nimport {readFile, writeFile} from 'node:fs/promises';\nimport match from '@putout/cli-match';\n\nconst {code, message} = await match({\n    pattern,\n    cwd: cwd(),\n    readFile, // optional\n    writeFile, // optional\n});\n\nconsole.log(message);\nprocess.exit(code);\n```\n\n## License\n\nMIT\n","_attachments":{},"homepage":"https://github.com/coderaiser/putout/tree/master/packages/cli-match#readme","bugs":{"url":"https://github.com/coderaiser/putout/issues"},"license":"MIT"}