{"name":"@putout/operator-add-argument","version":"1.3.5","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/55a1374b45070f6f4c777783a4be9a1c7b65b1f5/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.1","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":"9af682b19901b2a506bb41218ce243346678b1a4","bugs":{"url":"https://github.com/coderaiser/putout/issues"},"_id":"@putout/operator-add-argument@1.3.5","_nodeVersion":"16.10.0","_npmVersion":"7.24.0","dist":{"integrity":"sha512-1cV9vZxHK9feB8h6yuZduTNxNP/FuuwiAm7Z1F+Bb9NQg2X/aZpBZps/43npY1IxJ8+8jmNfiReshZrhrAo7Tw==","shasum":"f98b8bb915e7ea3926d6003e08e1d974f2a30e62","tarball":"http://registry-npm.ywwl.com/@putout/operator-add-argument/download/@putout/operator-add-argument-1.3.5.tgz","fileCount":4,"unpackedSize":6394,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJh2XmUCRA9TVsSAnZWagAAOfEP/1UVTILmp8QkL2wcq2LI\nW7tLJRIyzLXhakix9MRvnR1F+M0POOzxBn79pjKrcGmviTH05ThOFbWxVDRn\nslf1KpYgqINOUfKuuEebsGDwqVop/v2Hq6fBMRkGbxed+fqX3motECsPwHfK\nyRBLqyvzLb3v2RSYKziHr5BFZ2H09Q+lHIr32FJX6/u3LYmnDPJxI9nHyvR9\n3aCo1zF/vhZ1HW74eLguu5GYrnxgNfd9rz4Rc0sQOHKjDtwMPsubnQXlGcNh\n2PfY0xtgb0oTltEgZi99wl5Uxw+RZxPY+okYJ0dbnWqYAzAiv20QgdFZVp66\nPXqOEkpzHEmVT2PGAdbKr6S/ABk1SYoZ+m39iB879pdntgW9tUCj+d1JKmtE\nxSn5SciMlBoWQGGW6Trtq8j7/UloP40SXh42tNuCccw5+S0qa6hXAPScstcB\nJa896GEcfm9RujVohkucsymJq7MejT6BYfPE8kKKElNCO1YArxBWGyv88NoM\nEvnW08pyKqBObnKhGaqHksnKIvSTmPe009vZ6xzBh6LpDl8NjcZ/lR48qRAE\nwL5GqthBNt8FIFDVe3tRUzs6nELIQSavwWluT0r8Es7SyfTyf2ibpigFJWQc\nWofDqBvaZ4qhhMEPrltdEoUKy//AT5fajpLlM/joRuxcS6QqTXXzZKNhXa5p\na4Z2\r\n=UV8f\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIF52cU9J/A4Qo8Z2j86CRodTgOFRA7YSP6UfiphE0ImJAiEAx6dhVPhzsUvkFNQHoKcJ5Z3p/PGrc7mjhJdKbC9s+R8="}],"size":2655,"noattachment":false,"key":"/@putout/operator-add-argument/-/@putout/operator-add-argument-1.3.5.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.5_1634651885616_0.5319359396342245"},"_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":1634651885801,"_cnpm_publish_time":1634651885801,"dist-tags":{"latest":"1.3.5"}}