{"name":"@putout/cli-match","version":"2.2.1","keywords":["putout","cli"],"author":{"url":"https://github.com/coderaiser","name":"coderaiser","email":"mnemonic.enemy@gmail.com"},"license":"MIT","_id":"@putout/cli-match@2.2.1","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":"ccd1d447df5912f0147ec79aa7004541f88389da","tarball":"http://registry-npm.ywwl.com/@putout/cli-match/download/@putout/cli-match-2.2.1.tgz","fileCount":5,"integrity":"sha512-FLlEx/dAE4ghqFQF2xrS1W2/TbzHixtm9rlyWcFq/F1nq5NeWcFE0scKSzRtB3/yHkjG7dL+tya73+IaYnGRuA==","signatures":[{"sig":"MEUCIEfuinTSqnen1mYchxEh9iun/Z8nMO8oigQfpqhXGbt5AiEAwOAqAfUDs6DFIPJ8W4ieGKMrnOyYyfjEmzHdUMwHWZQ=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":5284,"size":2391,"noattachment":false,"key":"/@putout/cli-match/-/@putout/cli-match-2.2.1.tgz"},"main":"lib/match.js","type":"module","engines":{"node":">=16"},"gitHead":"245293e6a83c994b21b7e3af4934b215a95ff864","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":"^3.0.1","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_2.2.1_1767131090760_0.6895384230552108","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":1767131090903,"_cnpm_publish_time":1767131090903,"dist-tags":{"latest":"3.0.1"}}