{"name":"@putout/plugin-remove-iife","version":"4.0.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","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":"^6.0.0","c8":"^7.5.0","eslint":"^8.0.1","eslint-plugin-n":"^15.2.4","eslint-plugin-putout":"^16.0.0","lerna":"^6.0.1","madrun":"^9.0.0","nodemon":"^2.0.1"},"peerDependencies":{"putout":">=29"},"license":"MIT","engines":{"node":">=16"},"publishConfig":{"access":"public"},"gitHead":"8677442032090596960333ae147d7d43ef653657","bugs":{"url":"https://github.com/coderaiser/putout/issues"},"_id":"@putout/plugin-remove-iife@4.0.0","_nodeVersion":"18.14.2","_npmVersion":"9.1.3","dist":{"integrity":"sha512-OZNkfYJh0HiM64CJEGkNtxuosbQngKOgTnyOWW8GmIcG9Q/3FuCbvfe80dsoxn3fSc5gUEuGNCnthRA3iWmmtQ==","shasum":"f304435cf8b70bcfc0881641a6383e3975f865e8","tarball":"http://registry-npm.ywwl.com/@putout/plugin-remove-iife/download/@putout/plugin-remove-iife-4.0.0.tgz","fileCount":4,"unpackedSize":4867,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIBB4uhav8dpUDJdQI/3G1nwWiG1DC33vlQjU6IJqsqTUAiBjuysMcdRfhrFWydmH1BbLJOKFMFyS5k6bU37o/pZPSQ=="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkCwWpACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmqn+A/9Ha6cZjYivKXXjosHAkb9IsDJ43GnWRoGCw/k3h492aNHsaZp\r\nXwVYJaaPmfW3373xViM21f0zX0TmU0nNWxnCx+8FzpHRIGALWbQB7h+sTLxt\r\nJ3pJ4of7uop7VghZfJDmrczo5Ecq0DeDY2eYWujUGLvfc/qRnUMP3R/YKfGp\r\nSyZr/0NeqLE3mS9l6WwwwGWnaTAiGHc6n2ejwrCOyeLyxUXMSBb5wm/WSuub\r\nvt3iLCrH2R5bi89ek5HtF0OrZuiqyOZH/2iQ2PRI6I9+VH9rKsSvTP7p5CX0\r\nl+geTtls0Zuxy7B4MNW9hoHmUZ+pWRazmXonpM1ZMEqVKXRdgCZXQNM3T1S4\r\nFr9S9yfurrJYtYyykBcdzeSqpgTyKcR3QfiY7obvzfA0lfpiLgzSZTWf5X4a\r\n4vHtBlzDEXnVN5+7gxv7bdhCSw7kyUblCUICY/DXFpO+pxwEYV5GEwIw6Wah\r\ncpp1pChdpbSR7jMFfvd2+SKVVqeWly64hjfYgAxTd5JztvWxfOA9nZzSSdxX\r\nqU/szjlodgNteh/OHe62Ia6OsCa7McMOpPcI41y9xlOuY3B8NGi+tErp1Uxs\r\nwelhQtu3A+m52RMSUsLdHtLppt8VISSKa0+aU8im6Cj3bqPgEHdiYj4clILT\r\nsr7O6psFJbkvno3MJJ3IqcnZwYHVgy8kbXQ=\r\n=aoKm\r\n-----END PGP SIGNATURE-----\r\n","size":2403,"noattachment":false,"key":"/@putout/plugin-remove-iife/-/@putout/plugin-remove-iife-4.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/plugin-remove-iife_4.0.0_1678443945027_0.06097063454603835"},"_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":1678443945182,"_cnpm_publish_time":1678443945182,"dist-tags":{"latest":"5.1.0"}}