{"name":"@putout/cli-process-file","version":"2.2.0","keywords":["putout","cli"],"author":{"url":"https://github.com/coderaiser","name":"coderaiser","email":"mnemonic.enemy@gmail.com"},"license":"MIT","_id":"@putout/cli-process-file@2.2.0","homepage":"https://github.com/coderaiser/putout/tree/master/packages/cli-process-file#readme","bugs":{"url":"https://github.com/coderaiser/putout/issues"},"tag":false,"dist":{"shasum":"ca303ed838cdff981917c8c90384377b6be964c1","tarball":"http://registry-npm.ywwl.com/@putout/cli-process-file/download/@putout/cli-process-file-2.2.0.tgz","fileCount":6,"integrity":"sha512-R96obfSidlnvID7V+uBscZxPcfwnYPsSRPe4+b2xPdVUNe7pXnUsF9656Tvf+xBKfu1Ps8h1VUPqJhlVpcQctQ==","signatures":[{"sig":"MEUCIQCls8+oezuEQ9jxtzGgQ4+VeLcaRFqzpR1JHD1+gx9VEgIga3/AjCvfEnAVA0GIolZKR3F9K2qX+gpMWWxXUDo5EJ0=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":7586,"size":3076,"noattachment":false,"key":"/@putout/cli-process-file/-/@putout/cli-process-file-2.2.0.tgz"},"main":"lib/process-file.js","type":"commonjs","engines":{"node":">=18"},"gitHead":"f03e1b58c1cd12136f71b0059ee2d714d65f9aaa","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.1.0","description":"Run all 🐊Putout linters","directories":{},"_nodeVersion":"22.14.0","dependencies":{"samadhi":"^2.14.1","deepmerge":"^4.3.1","try-catch":"^3.0.0","try-to-catch":"^3.0.0","@putout/eslint":"^4.0.0","@putout/formatter-eslint":"^2.0.2"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"c8":"^10.0.0","eslint":"^9.0.0","madrun":"^10.0.0","montag":"^1.2.1","putout":"*","nodemon":"^3.0.1","supertape":"^10.0.0","mock-import":"^4.2.1","mock-require":"^3.0.3","@putout/operate":"^13.0.0","eslint-plugin-n":"^17.0.0","@putout/eslint-flat":"^2.0.0","eslint-plugin-putout":"^25.0.1"},"peerDependencies":{"putout":">=38"},"_npmOperationalInternal":{"tmp":"tmp/cli-process-file_2.2.0_1740739331096_0.7622740191134729","host":"s3://npm-registry-packages-npm-production"},"readme":"# @putout/cli-process-file [![NPM version][NPMIMGURL]][NPMURL]\n\n[NPMIMGURL]: https://img.shields.io/npm/v/@putout/cli-process-file.svg?style=flat&longCache=true\n[NPMURL]: https://npmjs.org/package/@putout/cli-process-file \"npm\"\n\nProcess file using 🐊**Putout**, **Samadhi** and **ESLint**.\n\n## Install\n\n```\nnpm i @putout/cli-process-file\n```\n\n## Example\n\n```js\nimport initProcessFile from '@putout/cli-process-file';\n\nconst processFile = initProcessFile({\n    fix: true,\n});\n\nconst {code, places} = await processFile({\n    source: `\n        const a = b.a\n    `,\n});\n\n// returns\n['const {a} = b;', [{\n    rule: 'no-undef (eslint)',\n    message: '\\'b\\' is not defined.',\n    position: {\n        line: 2,\n        column: 13,\n    },\n}]];\n```\n\n## License\n\nMIT\n","publish_time":1740739331281,"maintainers":[{"name":"coderaiser","email":"mnemonic.enemy@gmail.com"}],"_cnpm_publish_time":1740739331281,"dist-tags":{"latest":"7.1.0"}}