{"name":"@putout/plugin-remove-iife","version":"1.0.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.0.0","_nodeVersion":"14.14.0","_npmVersion":"6.14.7","dist":{"integrity":"sha512-PdV3jiz0t7PpA3ZSzUdK9Dg1UEqt2zCWAZVBmL6b4YGSiLgAswfU3oh+X0nRE5D3NrARgAPS/AOWsTe+E0n47w==","shasum":"fb65c64b87a0e29b392adf4eaacce6b7c8139ad1","tarball":"http://registry-npm.ywwl.com/@putout/plugin-remove-iife/download/@putout/plugin-remove-iife-1.0.0.tgz","fileCount":4,"unpackedSize":3670,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJflJlgCRA9TVsSAnZWagAA4XgP/1gWWoTgs9NSIpjdSe71\nK6vlq0BQM8y3W1CK0x3OvP0n+HGimuRhZlaNduSQ+y9LjSWyiWDLLkoZhelo\nQym/VEguOvmP4MUMcBPgGrDY7kelwlfKC/rtbbrKgL90bvWs10TdsXcy/JOV\nV1BWUtFeuywxjw6qe9YAizIRINJdg6jWnvSHW0iqKmsVwDgRvAR54UM6Bt3a\nQxmrMtutWETOFMWN37I8X+m7vDVsm5MNpYWrIYQOhl5JF5p+PU9QdYfXN+4c\nougBSWWWpUKlSJTTwpshQrQvz7iMqqfSsMjJDgivrLUMlcdLBtOiwz9w2jLz\nR9MlWzzlzGOnCTgJj8RhMEJf2li16eNeGIay3yiijCzAvaG6MOjj3+Okb8vT\n422XqQ0JLZzREs8jYRSAtalZGjFqIIfyMSe9MYptPsFRdj6vIBFc6ieIhQaR\n3Ia3MH/3vka+IcWP9/9JL/eSsiSDCyQM6Ld1lFhnKInA3H4rHp6X+Ts8gAjP\n4c2KRNerp2b78RFn44pq7SshBgz/g+Ctc6TVYgqvaIVppdCH8TCs3SJWG83m\necaFTuDg3pDUPiLqrHJItNq3xSV27O0c5NPg6Py6fB9x3PJpT3QxO5UiGYbA\nL+h6cTVJGLhKqZDjSYg4gIaun+h/O4wMGX+DZ+CjY0+27ekDprJq7NN7Ko/9\n8uth\r\n=ZZM5\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCICA7zzsSCcs7TGPbvhhsIpd6gmcmGbmVzlzGRj+SFxhaAiB+kFI9y7TIgGqBK6hYcNoKKvVD4VnDIPr87NCkJ3rmWA=="}],"size":1857,"noattachment":false,"key":"/@putout/plugin-remove-iife/-/@putout/plugin-remove-iife-1.0.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.0.0_1603574112206_0.8391979900576914"},"_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":1603574112346,"_cnpm_publish_time":1603574112346,"dist-tags":{"latest":"5.1.0"}}