{"name":"@putout/cli-match","version":"3.0.0","keywords":["putout","cli"],"author":{"url":"https://github.com/coderaiser","name":"coderaiser","email":"mnemonic.enemy@gmail.com"},"license":"MIT","_id":"@putout/cli-match@3.0.0","maintainers":[{"name":"coderaiser","email":"mnemonic.enemy@gmail.com"}],"homepage":"https://github.com/coderaiser/putout/tree/master/packages/cli-match#readme","bugs":{"url":"https://github.com/coderaiser/putout/issues"},"tag":false,"dist":{"shasum":"a5500c3e46cde6cb116391691160a90ca8594022","tarball":"http://registry-npm.ywwl.com/@putout/cli-match/download/@putout/cli-match-3.0.0.tgz","fileCount":5,"integrity":"sha512-OkNgce01Pnyyu/S8omSL5n19XZJj0cXhiXY9WJ18M0Gn2Xs/oTRyHv9AWNpESeu/WyKVDJlZdwPcMZWm1MYqbA==","signatures":[{"sig":"MEUCIQC0gFhqX561UwkwrSwVqEhYiCvJuOmEjOBCfWeiR+jLXQIgSsIa1egQRlYps99AlUUAq7aod+gp5X/1R6Nopsemcfw=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":5284,"size":2394,"noattachment":false,"key":"/@putout/cli-match/-/@putout/cli-match-3.0.0.tgz"},"main":"lib/match.js","type":"module","engines":{"node":">=20"},"gitHead":"626a73df7651e4b56076124155f9124a0b40e51b","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":"convert \"rules\" section to \"match\" in .putout.json","directories":{},"_nodeVersion":"25.2.1","dependencies":{"try-catch":"^4.0.2","try-to-catch":"^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","@putout/eslint-flat":"^3.0.0","eslint-plugin-putout":"^29.0.0"},"_npmOperationalInternal":{"tmp":"tmp/cli-match_3.0.0_1767132438609_0.9764749872832381","host":"s3://npm-registry-packages-npm-production"},"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","publish_time":1767132438778,"_cnpm_publish_time":1767132438778,"dist-tags":{"latest":"3.0.1"}}