{"name":"@putout/plugin-remove-iife","version":"2.1.0","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":"7d2b1e9cc9ffc386f69cfc37f0a2448dca6074f1","bugs":{"url":"https://github.com/coderaiser/putout/issues"},"_id":"@putout/plugin-remove-iife@2.1.0","_nodeVersion":"18.8.0","_npmVersion":"8.3.0","dist":{"integrity":"sha512-Gkggeu/P2bz97fw9wLxNSUL7f/Y1XukwPDSNBsJ2bbYNoPA/bIlDPD3EaokXlTAgQ8tWfhXvNawu47pK5gxcEg==","shasum":"5727b19d58b99201994c16f18c5f5ccba1946a23","tarball":"http://registry-npm.ywwl.com/@putout/plugin-remove-iife/download/@putout/plugin-remove-iife-2.1.0.tgz","fileCount":4,"unpackedSize":4305,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCqzjidfqEboftu2oyakPkNrQM3H1rkQZhH9EtfhnhizQIhANdhYm0re7R2Y9fxN6JBKshz7VNXYdzzlnaBXuMTFM4A"}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjIE6SACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmoQ7w/+JyffKgznz0+GoquJy3rJMSZcPxtsyoGJ+o7pcErLobarYcFS\r\nt6WEfvM6i4a42dXr8aU+hCZm9a1Z0h4Tt8D/j/1w2qURq3sbO1/yztFQTveW\r\nlV23gBxt9iC/clX+8F2Sdurp+EsjP0TwysftSobBZIIcdhz7h/JjzUlHL7uy\r\nIqpoRkMIN6H4q2IghYg/Yn6T8Kl+h884IAOZ33wQFIif11XnT4PAU1lJZQDr\r\njMeR6613Lzgwsh4JbicyzNAq9a0n6RCYITGtjPuw81O+U1gBOgyQi/Dcy+Bp\r\njNHzP9M6VigWO5DxZntu7QlkXg1AGiXUoomdAxW0yRdE8ldViL+MNj8EswDz\r\nxoFgyW6xDBsxDlYN3kCkD5LKPECxdUwNLqNuYLDstJsZy7S/qEBzmHnPoOcP\r\nHhgvAEeeGaUfydcJO9dnK9w96BQZgZ0zeKPdvi8y1nBDnGR47QEntlqHNqMA\r\nuEgCTGmAKNrjKPqIcbAupeUEwt+JSfteHMLh689Llyve0kwjutaUag7WdRkn\r\nDqyyJXIOsB1vlpADd6/qvYUienm7btbuhm7CU0N7r+ILcQSUJeYUWxodR5F0\r\nAtwtcmj77mG23XdODs1k29UYzwZ9DH99Uzon0EFSe9qLlVTHy0qYyGXbyS7b\r\nOJXaGtJrVwi3AnyNQfPEgyMDEQRTlXLgroo=\r\n=3N+y\r\n-----END PGP SIGNATURE-----\r\n","size":2206,"noattachment":false,"key":"/@putout/plugin-remove-iife/-/@putout/plugin-remove-iife-2.1.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/plugin-remove-iife_2.1.0_1663061650286_0.11759792779874867"},"_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":1663061650404,"_cnpm_publish_time":1663061650404,"dist-tags":{"latest":"5.1.0"}}