{"name":"@putout/operator-add-args","version":"11.0.0","keywords":["putout","putout-operator","operator","add-args"],"author":{"url":"https://github.com/coderaiser","name":"coderaiser","email":"mnemonic.enemy@gmail.com"},"license":"MIT","_id":"@putout/operator-add-args@11.0.0","homepage":"https://github.com/coderaiser/putout/tree/master/packages/operator-add-args#readme","bugs":{"url":"https://github.com/coderaiser/putout/issues"},"tag":false,"dist":{"shasum":"ee1deb63b980ee6f1978159e36524a94fdfa6ccc","tarball":"http://registry-npm.ywwl.com/@putout/operator-add-args/download/@putout/operator-add-args-11.0.0.tgz","fileCount":4,"integrity":"sha512-pAMrvyLCbYoszj9AcWfLrIZU/p/vLeQ50YOgmokkZ1kyj0MI4fmwn/fyHCJy2chLFSi+g7j+J/0fL9cofWCd3w==","signatures":[{"sig":"MEUCIFhrobfHkBbIQCGntHRNOkpWu1XS1cdGnV08oeuRlCtiAiEAxHpNpp66s924aPm/490D7N1gapyA1rWUevH9N0MpGi4=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":7332,"size":2834,"noattachment":false,"key":"/@putout/operator-add-args/-/@putout/operator-add-args-11.0.0.tgz"},"main":"lib/add-args.js","type":"commonjs","engines":{"node":">=20"},"gitHead":"269cf12f239f78562a09b903671a737263ad8eb7","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":"🐊Putout operator adds ability to add args to referenced variables that was not defined","directories":{},"_nodeVersion":"22.14.0","dependencies":{"@putout/babel":"^3.0.0","@putout/compare":"^17.0.0","@putout/engine-parser":"^12.0.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"c8":"^10.0.0","eslint":"^9.0.0","madrun":"^11.0.0","montag":"^1.2.1","nodemon":"^3.0.1","supertape":"^10.0.0","@putout/test":"^12.0.0","eslint-plugin-n":"^17.0.0","@putout/eslint-flat":"^3.0.0","eslint-plugin-putout":"^26.0.0"},"peerDependencies":{"putout":">=39"},"_npmOperationalInternal":{"tmp":"tmp/operator-add-args_11.0.0_1742596414154_0.7295146537546076","host":"s3://npm-registry-packages-npm-production"},"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":1742596414325,"maintainers":[{"name":"coderaiser","email":"mnemonic.enemy@gmail.com"}],"_cnpm_publish_time":1742596414325,"dist-tags":{"latest":"15.3.1"}}