{"name":"@putout/operator-ignore","version":"6.0.6","keywords":["putout","putout-operator","operator","ignore"],"author":{"url":"https://github.com/coderaiser","name":"coderaiser","email":"mnemonic.enemy@gmail.com"},"license":"MIT","_id":"@putout/operator-ignore@6.0.6","maintainers":[{"name":"coderaiser","email":"mnemonic.enemy@gmail.com"}],"homepage":"https://github.com/coderaiser/putout/tree/master/packages/operator-ignore#readme","bugs":{"url":"https://github.com/coderaiser/putout/issues"},"tag":false,"dist":{"shasum":"3fb68f95492e6a5a50802130e655e8f9c1eda2f9","tarball":"http://registry-npm.ywwl.com/@putout/operator-ignore/download/@putout/operator-ignore-6.0.6.tgz","fileCount":4,"integrity":"sha512-CgUJ15d+LR7yrRjQiQ19fgMGCKu7cNDCHz6NNuq7cWcZBOSSfr2aduUnByDtewL4KvKMotHlPcxvxMnYUA5ybA==","signatures":[{"sig":"MEUCIQCqienm+oEYBLDW3bMW33AjyPv2+rRw/u2MTXax3RchfQIgdrGnbbw1YMV1mHcowdlzAFzvMku81k0FvgixNwJPxdw=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":6650,"size":2709,"noattachment":false,"key":"/@putout/operator-ignore/-/@putout/operator-ignore-6.0.6.tgz"},"main":"lib/ignore.js","type":"module","engines":{"node":">=22"},"gitHead":"3540c7f26043d9be296b5f3f0f244a6e0d66504a","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":"🐊Putout operator adds ability to add files to ignore","directories":{},"_nodeVersion":"25.6.1","dependencies":{"picomatch":"^4.0.3","@putout/babel":"^5.0.0","@putout/operate":"^15.0.0","@putout/operator-json":"^3.2.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"c8":"^10.0.0","eslint":"^10.0.0","madrun":"^12.0.0","montag":"^1.2.1","putout":"*","nodemon":"^3.0.1","supertape":"^12.0.0","@putout/test":"^15.0.0","eslint-plugin-n":"^17.0.0","eslint-plugin-putout":"^30.0.0"},"peerDependencies":{"putout":">=41"},"_npmOperationalInternal":{"tmp":"tmp/operator-ignore_6.0.6_1771100098095_0.3246598147112374","host":"s3://npm-registry-packages-npm-production"},"readme":"# @putout/operator-ignore [![NPM version][NPMIMGURL]][NPMURL]\n\n[NPMIMGURL]: https://img.shields.io/npm/v/@putout/operator-ignore.svg?style=flat&longCache=true\n[NPMURL]: https://npmjs.org/package/@putout/operator-ignore \"npm\"\n\n> A `.gitignore` file specifies intentionally untracked files that Git should ignore.\n>\n> (c) [git-scm.com](https://git-scm.com/docs/gitignore)\n\n🐊[**Putout**](https://github.com/coderaiser/putout) operator simplifies creating `ignore`-plugins.\n\n## Install\n\n```\nnpm i putout @putout/operator-ignore\n```\n\n## API\n\n### `ignore`\n\n```js\nimport {operator} from 'putout';\n\nconst {ignore} = operator;\n\nexport const {\n    report,\n    fix,\n    traverse,\n} = ignore({\n    name: '.npmignore',\n    list: [\n        '.*',\n        'yarn-error.log',\n        'coverage',\n        '*.config.*',\n    ],\n});\n```\n\n### `type`\n\n```js\nimport {operator} from 'putout';\n\nconst {__json, ignore} = operator;\n\nexport const {\n    report,\n    fix,\n    traverse,\n} = ignore({\n    type: __json,\n    name: '.nycrc.json',\n    field: 'exclude',\n    list: ['*.config.*'],\n});\n```\n\nIf file and passed in list mask overlaps, only mask saved, and list name removed:\n\n```\n-yarn-error.log\n+*.log\n```\n\n## Configuration\n\nPlugin supports options, so you can pass it in `.putout.json`:\n\n```json\n{\n    \"rules\": {\n        \"coverage/add-exclude\": [\"on\", {\n            \"list\": [\"**/*.ts\"]\n        }]\n    }\n}\n```\n\n## License\n\nMIT\n","publish_time":1771100098218,"_cnpm_publish_time":1771100098218,"dist-tags":{"latest":"6.3.0"}}