{"name":"@putout/plugin-remove-iife","version":"5.0.0","keywords":["putout","putout-plugin","putout-plugin-remove","plugin","iife"],"author":{"url":"https://github.com/coderaiser","name":"coderaiser","email":"mnemonic.enemy@gmail.com"},"license":"MIT","_id":"@putout/plugin-remove-iife@5.0.0","maintainers":[{"name":"coderaiser","email":"mnemonic.enemy@gmail.com"}],"homepage":"https://github.com/coderaiser/putout/tree/master/packages/plugin-remove-iife#readme","bugs":{"url":"https://github.com/coderaiser/putout/issues"},"tag":false,"dist":{"shasum":"08ef402ab00bab3eb8dc6001c1b2496ea7bc78a3","tarball":"http://registry-npm.ywwl.com/@putout/plugin-remove-iife/download/@putout/plugin-remove-iife-5.0.0.tgz","fileCount":4,"integrity":"sha512-AQM0hM1a4ORt13yZHlb+5mOQMkx2NjcXB504CMg5egPJysMwuXfv6GPSrVbjfN56c0mO/MiQcLZqltTI4dCmxw==","signatures":[{"sig":"MEUCIQDiH2maqUdeS337d4lt5+LtILldG8QIuf5ymNFru2awBQIgdR33Gmzn8badhBNYq80A1KBwfIRtmp+vawJ8gpEaG60=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":4815,"size":2386,"noattachment":false,"key":"/@putout/plugin-remove-iife/-/@putout/plugin-remove-iife-5.0.0.tgz"},"main":"lib/remove-iife.js","type":"module","engines":{"node":">=20"},"gitHead":"1217d31eda0e1245e2910b7699b4976e13791796","release":false,"scripts":{"lint":"madrun lint","test":"madrun test","report":"madrun report","coverage":"madrun coverage","fix:lint":"madrun fix:lint","fresh:lint":"madrun fresh:lint","lint:fresh":"madrun lint:fresh","watch:test":"madrun watch:test"},"_npmUser":{"name":"coderaiser","email":"mnemonic.enemy@gmail.com"},"changelog":false,"repository":{"url":"git+https://github.com/coderaiser/putout.git","type":"git"},"_npmVersion":"11.1.0","description":"🐊Putout plugin adds ability to find and remove iife","directories":{},"_nodeVersion":"24.1.0","dependencies":{},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"c8":"^10.0.0","eslint":"^9.0.0","madrun":"^11.0.0","nodemon":"^3.0.1","@putout/test":"^13.0.0","eslint-plugin-n":"^17.0.0","@putout/eslint-flat":"^3.0.0","eslint-plugin-putout":"^27.0.0"},"peerDependencies":{"putout":">=40"},"_npmOperationalInternal":{"tmp":"tmp/plugin-remove-iife_5.0.0_1748603654682_0.4417658289266735","host":"s3://npm-registry-packages-npm-production"},"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":1748603654875,"_cnpm_publish_time":1748603654875,"dist-tags":{"latest":"5.1.0"}}