{"name":"@putout/plugin-remove-iife","version":"1.1.0","author":{"name":"coderaiser","email":"mnemonic.enemy@gmail.com","url":"https://github.com/coderaiser"},"description":"putout plugin adds ability to find and remove iife","homepage":"http://github.com/coderaiser/putout","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:lib":"madrun lint:lib","lint":"madrun lint","fix:lint":"madrun fix:lint","putout":"madrun putout","coverage":"madrun coverage","report":"madrun report"},"dependencies":{},"keywords":["putout","putout-plugin","putout-plugin-remove","plugin","iife"],"devDependencies":{"@putout/test":"^2.0.0","coveralls":"^3.0.0","eslint":"^7.0.0","eslint-plugin-node":"^11.0.0","eslint-plugin-putout":"^5.0.1","lerna":"^3.8.5","madrun":"^7.0.0","nodemon":"^2.0.1","nyc":"^15.0.1"},"peerDependencies":{"putout":">=10"},"license":"MIT","engines":{"node":">=12"},"publishConfig":{"access":"public"},"bugs":{"url":"https://github.com/coderaiser/putout/issues"},"_id":"@putout/plugin-remove-iife@1.1.0","_nodeVersion":"14.14.0","_npmVersion":"6.14.7","dist":{"integrity":"sha512-c39o/CxBS7KQBEppiGNhtf82HmvCI4jSrZqDMC8XhG34tidcpGf17mOEPv9OSrKLjBqZXEvnEPvlg6gF0F+v7w==","shasum":"6c9c010eeec68880584878625ab66195e7e2457d","tarball":"http://registry-npm.ywwl.com/@putout/plugin-remove-iife/download/@putout/plugin-remove-iife-1.1.0.tgz","fileCount":4,"unpackedSize":3929,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJflS/QCRA9TVsSAnZWagAAO8YP/jWjpuABQLSH6m39XZSp\n0tF6fjXHVv+/LKUxakyiUi0QxD/fsGK2z0Cj15et9MXEipzWeMvxoMo4O82x\nSWXk5ouVNOxjabhbAcA6bUd/vEj1JPlbaxt07r1q+ouzihBZWIlX4r5FqLIJ\nVBsm9jM9LAhjRCDwTmXcf2q1DY2lF1uu7mjH/dAabN5H437Jpkv/V/0T7mMM\npVYW+n87Occ/4dYlB+8AIl6nRCyevph+7exgC1NDdAybNo0Ll1RWG0HrSWyU\nm3ACA6FfxW3OXkaPYX0fynRDsEIT/ZNdfhBpTAzoDDhOZgPBTsZMRlV2lJLs\no18PAwXLr4yWSd2IGYLXIsaifluTlMTy/u3dOSeA2nwMI9Q0Sy8A0Pz2WkRL\nPWuOs5HCJ5gPxRh8qbP90acFfYCvmZRpOsTOiMZ6bB1N/9ZZpqxK6uiATNK9\nY4PO18h4oS8ftycEvn5IY1sirXkk4hj3kz9fFER1kyYa0b+BItR6uJw9ARId\nqOrchlSrj6ojH1BdfMbw78zoxupX+zfmNx06IOHXMhubgLask0SWLQMb0XVE\ntSkHVesghMNx3u5lCCX1QGst39feNbEKyd4le09LKZ+nd0uMOEXbMO3f5DYs\nAUsMPwu5RBVzkvk4VoxA1t8GNAjD5YEQGsNQyNHO56QBMwoGYB8frGA8Lg/v\nOWvm\r\n=xWJq\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIGXgKC0l/sQK1MhiTPSAvqdNJ5ey39xHPrVka+NCwcQrAiEA8DGNRkrDn5k7z9tN4LfmbaUGPWjrtZ3Dp+7KLy0JEdo="}],"size":1943,"noattachment":false,"key":"/@putout/plugin-remove-iife/-/@putout/plugin-remove-iife-1.1.0.tgz"},"maintainers":[{"name":"coderaiser","email":"mnemonic.enemy@gmail.com"}],"_npmUser":{"name":"coderaiser","email":"mnemonic.enemy@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/plugin-remove-iife_1.1.0_1603612623848_0.18535307109470867"},"_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":1603612624015,"_cnpm_publish_time":1603612624015,"dist-tags":{"latest":"5.1.0"}}