{"name":"@putout/plugin-remove-iife","version":"4.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","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":"^17.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":"2a250040acf2a7859a59371899747446e7d20746","bugs":{"url":"https://github.com/coderaiser/putout/issues"},"_id":"@putout/plugin-remove-iife@4.1.0","_nodeVersion":"18.15.0","_npmVersion":"9.1.3","dist":{"integrity":"sha512-sprRQalN9BRJ28iz2LPhnz4bM6qjwlnRZoHZY7+a4Grqp/mFeKcnvfWsL/EUaeykHCnSk/tC6umLlCbme/I8OA==","shasum":"b8c0b0dbfe29970cdac456fc51b98c5dc3130630","tarball":"http://registry-npm.ywwl.com/@putout/plugin-remove-iife/download/@putout/plugin-remove-iife-4.1.0.tgz","fileCount":4,"unpackedSize":4831,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCXpAkKg1d/XmOAkNEe1Z3sFl8qQpxSnfDDC+HZJtsXyAIgJTKIw7t9pJ4fhdbdLVsrOhUwjV75L1kGWNQijSR8rtg="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkRZtGACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmqnFQ//TjLufXPYVAXkYjI38L7hMzt2XoP+iM5KQrGqVT0ewGvhr7ZG\r\nlXhskBkCSiTejDnoDOkyKgBiDpmhrmc2/zJ6OJ+BQr4GHt53Hvd+kBu+Uy8C\r\nkD6flebCTfHL6KEroqDZwcK0k+ruqJ/m9qcQFZieg9FishO3q64U4aKLi7Gd\r\nLTGnqzgZy5sD2ADYJnxErNSGPsRV7HFd2Saj/8a8ga/VqeRn38eyxtK3x6Mu\r\n0LkykxNNUkE2GAlePHsTM5TsJSnu2AWMK2OnABzKItArISFWoXAU/rYfO9JX\r\nehBGjonKgQP14HNs1hjtskPssRog2aAh02f5N3ilIPMPEESYXB7lEHoAM6xq\r\nvkLgXAbjZOclEGM7Ve4R+MwxLumvOIAaDJzdkCz2p7Z9YAfhminiKMYsKy1b\r\nse7HuA73/VWqMRwB9eqxKRUjNl//IS2RbhvDJK2lM7DjHdBtfyXgu586+fwj\r\nGU57cIscerdkclOvXj84Ao5wYdY0//dtjiPfeYQnqH1uLFjy+KuvCYhKcUad\r\nunf0ekKKJ/sQ5Mu4GsesGzz3sBQGnYLawppFbqvVx2+L70+YSujQ4YwMTaFL\r\nDE7pt22f9yy0BaF/fUMOuilh5uwNjwwzTSayZVY3i5GVJ1vEMMnCuYfa+gsI\r\nxw2RCC+8DAdvMu9YtiiTu+iy+ahM6Wkzj/c=\r\n=ewDH\r\n-----END PGP SIGNATURE-----\r\n","size":2392,"noattachment":false,"key":"/@putout/plugin-remove-iife/-/@putout/plugin-remove-iife-4.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_4.1.0_1682283334597_0.042883571224459516"},"_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":1682283334764,"_cnpm_publish_time":1682283334764,"dist-tags":{"latest":"5.1.0"}}