{"name":"@putout/operator-add-argument","version":"1.0.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":{},"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":"85001108f145223455b93a707f044592243b525c","bugs":{"url":"https://github.com/coderaiser/putout/issues"},"_id":"@putout/operator-add-argument@1.0.0","_nodeVersion":"16.10.0","_npmVersion":"7.24.0","dist":{"integrity":"sha512-EleF+a+tmZaJsSfvtbbZEhC7GCNTE+LDtH1Z29Bhi/Av3brWOVtxUZ8aPPl+/SPNnEtlOgqirePrCKxc6NTkPA==","shasum":"3d1a4370d596061b75df0dace85503816c3013e6","tarball":"http://registry-npm.ywwl.com/@putout/operator-add-argument/download/@putout/operator-add-argument-1.0.0.tgz","fileCount":4,"unpackedSize":5666,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIDIl0xtbEDdEvMQO0lcCccyKZXEWPCffuBcS5GPZ9Sz2AiBd5C6u/NbSeOjGzEykGLX4p5byzsck5ceHzY0MIa42Ag=="}],"size":2425,"noattachment":false,"key":"/@putout/operator-add-argument/-/@putout/operator-add-argument-1.0.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.0.0_1633521082856_0.5468152081683346"},"_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":1633521083007,"_cnpm_publish_time":1633521083007,"dist-tags":{"latest":"1.3.5"}}