{"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":{"integrity":"sha512-IMMIDDJAUtmThGh/5IpWuvVGp6e6JsaGUlsNhCAzjCDW/0amjiJYaG8GbrzSeV4pgEvt09gDpG8l89Jvwywlmg==","shasum":"283c087fac7b92d5d1b34666955a4cd2caedfc41","tarball":"http://registry-npm.ywwl.com/@putout/cli-match/download/@putout/cli-match-3.0.1.tgz","fileCount":5,"unpackedSize":5288,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIQDmuVvW7rEws6UsPhpNqQ4VyvaDNzk8x52vXDuiqJ1eigIgKLzoAI2edDHQ/J7Fa6CQF7Inx6ptMi3J6URRj9O8QoI="}],"size":2399,"noattachment":false,"key":"/@putout/cli-match/-/@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,"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":1767181196656,"_cnpm_publish_time":1767181196656,"dist-tags":{"latest":"3.0.1"}}