{"name":"@putout/operator-add-args","version":"11.0.1","type":"commonjs","author":{"name":"coderaiser","email":"mnemonic.enemy@gmail.com","url":"https://github.com/coderaiser"},"description":"🐊Putout operator adds ability to add args to referenced variables that was not defined","homepage":"https://github.com/coderaiser/putout/tree/master/packages/operator-add-args#readme","main":"lib/add-args.js","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":{"@putout/babel":"^3.0.0","@putout/compare":"^17.0.0","@putout/engine-parser":"^13.0.1"},"keywords":["putout","putout-operator","operator","add-args"],"devDependencies":{"@putout/eslint-flat":"^3.0.0","@putout/test":"^12.0.0","c8":"^10.0.0","eslint":"^9.0.0","eslint-plugin-n":"^17.0.0","eslint-plugin-putout":"^26.0.0","madrun":"^11.0.0","montag":"^1.2.1","nodemon":"^3.0.1","supertape":"^10.0.0"},"peerDependencies":{"putout":">=39"},"license":"MIT","engines":{"node":">=20"},"publishConfig":{"access":"public"},"_id":"@putout/operator-add-args@11.0.1","gitHead":"f30838585fe6e7aa85ca71d10ca0fa349d66d48f","bugs":{"url":"https://github.com/coderaiser/putout/issues"},"_nodeVersion":"22.14.0","_npmVersion":"11.1.0","dist":{"integrity":"sha512-zKKdqi/qB05k6EBZxr0k6VN0wqncRHr6jAd1fh+PHOrRD/zPG/d1njMPPyUAXkF019nOGi/YBR90+aJSH1h5Cw==","shasum":"f9fe651d1a11c5c6ebb7f67b6a92f5891edae150","tarball":"http://registry-npm.ywwl.com/@putout/operator-add-args/download/@putout/operator-add-args-11.0.1.tgz","fileCount":4,"unpackedSize":7332,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEYCIQCW30I5j1Mp1i8MEQf0IVHQvfSAvjOEz8kqhpz69uyqGAIhAK6GkMxAGN8X1iiTkIdv6oKRC6L7OzkhGlRIvVo+VvPB"}],"size":2837,"noattachment":false,"key":"/@putout/operator-add-args/-/@putout/operator-add-args-11.0.1.tgz"},"_npmUser":{"name":"coderaiser","email":"mnemonic.enemy@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/operator-add-args_11.0.1_1742596648294_0.8158282968552169"},"_hasShrinkwrap":false,"readme":"# @putout/operator-add-args [![NPM version][NPMIMGURL]][NPMURL]\n\n[NPMIMGURL]: https://img.shields.io/npm/v/@putout/operator-add-args.svg?style=flat&longCache=true\n[NPMURL]: https://npmjs.org/package/@putout/operator-add-args \"npm\"\n\n🐊**Putout** operator adds ability to add argument that was not defined before.\n\n## Install\n\n```\nnpm i putout @putout/operator-add-args\n```\n\n## API\n\nIf you want to create 🐊**Putout** `plugin` that will add `args` according to your needs just:\n\n```js\nconst {operator} = require('putout');\nconst {addArgs} = operator;\n\nmodule.exports = addArgs({\n    comparePlaces: ['{comparePlaces}', 'test(\"__a\", (__args) => __body)'],\n    t: ['{comparePlaces}', [\n        'test(\"__a\", (__args) => __body)',\n        'test.only(\"__a\", (__args) => __body)',\n    ]],\n    maybe: ['{maybe}', [\n        'module.exports.__a = (__args) => __body',\n    ]],\n});\n```\n\nIf you have a file `index.spec.js`:\n\n```diff\n-test('', () => {\n+test('', ({comparePlaces}) => {\n    comparePlaces();\n});\n```\n\nPlugin supports options, so you can pass it in `.putout.json`:\n\n```json\n{\n    \"rules\": {\n        \"tape/add-args\": [\"on\", {\n            \"args\": {\n                \"comparePlaces\": [\"{comparePlaces}\", \"test('__a', (__args) => __body)\"]\n            }\n        }]\n    }\n}\n```\n\n## License\n\nMIT\n","publish_time":1742596648458,"maintainers":[{"name":"coderaiser","email":"mnemonic.enemy@gmail.com"}],"_cnpm_publish_time":1742596648458,"dist-tags":{"latest":"15.3.1"}}