{"name":"@putout/operator-add-argument","version":"1.3.0","author":{"name":"coderaiser","email":"mnemonic.enemy@gmail.com","url":"https://github.com/coderaiser"},"description":"putout operator adds ability to add argument to referenced variables that wan not defined","homepage":"https://github.com/coderaiser/putout/tree/master/packages/operator-add-argument","main":"lib/add-argument.js","release":false,"tag":false,"changelog":false,"repository":{"type":"git","url":"git://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/compare":"^8.1.0"},"keywords":["putout","putout-operator","operator","add-argument"],"devDependencies":{"@putout/test":"^3.0.0","c8":"^7.5.0","eslint":"^8.0.0-beta.0","eslint-plugin-node":"^11.0.0","eslint-plugin-putout":"^10.0.0","lerna":"^4.0.0","madrun":"^8.0.1","montag":"^1.2.1","nodemon":"^2.0.1","supertape":"^6.7.2"},"peerDependencies":{"putout":">=20"},"license":"MIT","engines":{"node":">=14"},"publishConfig":{"access":"public"},"gitHead":"f1c803c70a65982666d8f3b4c7a872fae7d92361","bugs":{"url":"https://github.com/coderaiser/putout/issues"},"_id":"@putout/operator-add-argument@1.3.0","_nodeVersion":"16.10.0","_npmVersion":"7.24.0","dist":{"integrity":"sha512-R1odPKAq6MxNPfpUwCGj9mnwbR8m2eQan0knHi3FY4ctYpTI1QxGUig10+fBjRi1feL4hyGVZGRhYiuA6Q12/Q==","shasum":"09cef980d795f7d295abd4bc55dc71449b48f6f0","tarball":"http://registry-npm.ywwl.com/@putout/operator-add-argument/download/@putout/operator-add-argument-1.3.0.tgz","fileCount":4,"unpackedSize":6519,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIDi+YDCzlzAH/DE4QQkp1MpieEKI+32UQm5VVVnmLPvDAiBLL0T2pOg2/m729/WW39sBE6ytIeoX0UG/oxOGhv8mBw=="}],"size":2656,"noattachment":false,"key":"/@putout/operator-add-argument/-/@putout/operator-add-argument-1.3.0.tgz"},"_npmUser":{"name":"coderaiser","email":"mnemonic.enemy@gmail.com"},"directories":{},"maintainers":[{"name":"coderaiser","email":"mnemonic.enemy@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/operator-add-argument_1.3.0_1633633438093_0.5539730330859325"},"_hasShrinkwrap":false,"readme":"# @putout/operator-add-argument [![NPM version][NPMIMGURL]][NPMURL]\n\n[NPMIMGURL]: https://img.shields.io/npm/v/@putout/operator-add-argument.svg?style=flat&longCache=true\n[NPMURL]: https://npmjs.org/package/@putout/operator-add-argument \"npm\"\n\n`putout` operator adds ability to add-argument variable that was not defined before. Renamed to [@putout/operator-add-args](https://github.com/coderaiser/putout/tree/v20.13.0/packages/operator-add-args).\n\n## Install\n\n```\nnpm i putout @putout/operator-add-argument\n```\n\n## API\n\nIf you want to create `putout plugin` that will add-argument variables according to your needs just:\n\n```js\nconst {operator} = require('putout');\n\nconst {addArgument} = operator;\n\nmodule.exports = addArgument({\n    comparePlaces: ['{comparePlaces}', 'test(\"__a\", (__args) => __body)'],\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/declare-t\": [\"on\", {\n            \"declarations\": {\n                \"comparePlaces\": [\"{comparePlaces}\", \"test('__a', (__args) => __body)\"]\n            }\n        }]\n    }\n}\n```\n\n## License\n\nMIT\n","publish_time":1633633438230,"_cnpm_publish_time":1633633438230,"dist-tags":{"latest":"1.3.5"}}