{"name":"@putout/plugin-remove-iife","version":"2.1.1","type":"commonjs","author":{"name":"coderaiser","email":"mnemonic.enemy@gmail.com","url":"https://github.com/coderaiser"},"description":"🐊Putout plugin adds ability to find and remove iife","homepage":"https://github.com/coderaiser/putout/tree/master/packages/plugin-remove-iife#readme","main":"lib/remove-iife.js","commitType":"colon","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-plugin","putout-plugin-remove","plugin","iife"],"devDependencies":{"@putout/test":"^5.0.0","c8":"^7.5.0","eslint":"^8.0.1","eslint-plugin-n":"^15.2.4","eslint-plugin-putout":"^16.0.0","lerna":"^5.0.0","madrun":"^9.0.0","nodemon":"^2.0.1"},"peerDependencies":{"putout":">=27"},"license":"MIT","engines":{"node":">=16"},"publishConfig":{"access":"public"},"gitHead":"67b99f7113432331188355b37f316e2ff32324b1","bugs":{"url":"https://github.com/coderaiser/putout/issues"},"_id":"@putout/plugin-remove-iife@2.1.1","_nodeVersion":"18.8.0","_npmVersion":"8.3.0","dist":{"integrity":"sha512-urP4WF6KCgAQv0y9BwoydgZsrxIK6Eh5qOrxDMVYtTB+TBJEOb5BOroLFByG7yMJCbA7Dv5aJJnGkHXsiqqgdQ==","shasum":"8acde80591f56b1098e5068d139bfd19c5a5e52e","tarball":"http://registry-npm.ywwl.com/@putout/plugin-remove-iife/download/@putout/plugin-remove-iife-2.1.1.tgz","fileCount":4,"unpackedSize":4305,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIAwgpLc0yFc8Eb2SFDFWmsJxdvNcvmghd3HchKUaAbevAiEA+UAxh0J7IH9sVX9OzPDDE4iYUPFmbA+HnSiqxrJF92o="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjId+ZACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmrz0w//YSBRgAVeXoMXov4h6B5K5haktZ6eWw7ch1asYPMxBpfku6td\r\nYN2PBAyiHR51mY2MyGqz0I4iK3w16fKAhXVsJciKSW6sSmI+zR4sReyKbpOI\r\nYIqWeP4grJHNeT6izq972fFUdptz+xMp0x4tglqDFspothy53sRUnWnzQUBa\r\nLKvFvuBqhrTyj1yrlYTqeoLhGOSq23Ty5dHbgP6EojZS2iLxT0o6yKYpmDwJ\r\nDWAUh/9D2GFi8CAFvEY+rEOsrTkqm/2BneGqHO5bGMIFQBHfYPRjQoqulKUN\r\nL+PhjQExXGJTF5P1oSAiMOwlkAAV1ewHcEZ0pzfiCPQK6wWDZNwzJXzNuwvv\r\nnMN4OyH3FdNyyN6bXUlFg9nyiVnn7YJQfWuUhDEiGcLbEcFLJp/J3x543HrH\r\n2+OrZ8W3mqZRgpmmWlvk/Y4t/cJLIPMDUW1PE6jQl0o2d3dbhKKKF9hZ1yEL\r\n7sLj7TQRF2JaQG2oTMrPo+DTTJm6U1gpRX6Hge07ohemqFLYH5d+sUvEXAlN\r\nPXlARpKroPbjvBHtSVOyjTHFdZjT7NyxL4cQwPldsmuG9hAyIEZG9Q9VltfR\r\no4FMgPoUyhsbWU5FXL1tTTj+s5gEsH1+jKZRe7CB47+GAKP/UdgfEmSyDOq3\r\nAZ64y/iFYS7bbF/Bs7PG38HyjdeW3rHFH/Y=\r\n=2ULd\r\n-----END PGP SIGNATURE-----\r\n","size":2207,"noattachment":false,"key":"/@putout/plugin-remove-iife/-/@putout/plugin-remove-iife-2.1.1.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/plugin-remove-iife_2.1.1_1663164312958_0.029421920902259258"},"_hasShrinkwrap":false,"readme":"# @putout/plugin-remove-iife [![NPM version][NPMIMGURL]][NPMURL]\n\n[NPMIMGURL]: https://img.shields.io/npm/v/@putout/plugin-remove-iife.svg?style=flat&longCache=true\n[NPMURL]: https://npmjs.org/package/@putout/plugin-remove-iife\"npm\"\n\n> An **IIFE** (Immediately Invoked Function Expression) is a **JavaScript** function that runs as soon as it is defined.\n>\n> (c) [MDN](https://developer.mozilla.org/en-US/docs/Glossary/IIFE)\n\n🐊[**Putout**](https://github.com/coderaiser/putout) plugin adds ability to find and remove **IIFE**.\nCheck out in 🐊**Putout Editor**:\n\n- ✅ [getting read of `IIFE`](https://putout.cloudcmd.io/#/gist/e4c8fb3bdf6beb33b693a4ee0892d9aa/93296ca2fd22e502a584f95ce5c5e3a7ae838e2f) using **Linked Template Values**[(`__a`](https://github.com/coderaiser/putout/blob/master/docs/putout-script.md#__a));\n- ✅ [getting read of `IIFE`](https://putout.cloudcmd.io/#/gist/42c19f103b40d86b1d20d7201306c5e3/c752dcc2d80fe90ca2431ad952a5fdc32a780492) using **Linked Args** [(`__args__a`)](https://github.com/coderaiser/putout/blob/master/docs/putout-script.md#__args__a);\n\n## Install\n\n```\nnpm i @putout/plugin-remove-iife\n```\n\n## Rule\n\n```json\n{\n    \"rules\": {\n        \"remove-iife\": \"on\"\n    }\n}\n```\n\n## ❌ Example of incorrect code\n\n```js\n(function() {\n    console.log('hello');\n})();\n\n((a) => fn(a))(value);\n((a, b) => fn(a, b))(value, value2);\n```\n\n## ✅ Example of correct code\n\n```js\nconsole.log('hello');\nfn(value);\nfn(value, value2);\n```\n\n## License\n\nMIT\n","publish_time":1663164313165,"_cnpm_publish_time":1663164313165,"dist-tags":{"latest":"5.1.0"}}