{"name":"@putout/plugin-remove-iife","version":"3.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","commitType":"colon","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":"^5.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":">=28"},"license":"MIT","engines":{"node":">=16"},"publishConfig":{"access":"public"},"gitHead":"ffdc81ef9cc5bf8b2791b168bbc37f15785db380","bugs":{"url":"https://github.com/coderaiser/putout/issues"},"_id":"@putout/plugin-remove-iife@3.1.0","_nodeVersion":"18.13.0","_npmVersion":"9.1.3","dist":{"integrity":"sha512-qv7KSFIlNqwmfz3Qo8oeSo3GoKORBxo7mQ9yQ7yXeoiBo5CmxLOXamUYYDzQH6Yncw1U6TRu70Pk1XZvdwcUEA==","shasum":"d0ba0be09997bcb274a717e0e37cc92959f58058","tarball":"http://registry-npm.ywwl.com/@putout/plugin-remove-iife/download/@putout/plugin-remove-iife-3.1.0.tgz","fileCount":4,"unpackedSize":4817,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIAepzNn/KeTcu+jtSDETrG8e/evxUN4jMR5rF02rEpYFAiEAoiRVVcDKBX6cWg5ABdOHTj9pFtQ8EmcisPVs3mogtZM="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjyRBMACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmpjGg//apMjW6NO5aY9mC08gvQOuN/byT/WeBgSMqDvGQZfOKfcPZVS\r\nmjcLEDsYNAwz5SUW9TQxv7op2hbpHO9z5ahKdGwvRAliDZSZjJpXu/5R/2hC\r\nP98UUU2ZbflFw3fzQJlA8fxL8ROotrTfQVIYWyPeMP0RMViY53vuIonSMCwd\r\nixPMULNoNw0FgXJIJePuwaN7o5l5nXEe1Ne/uxs/MPafddWNNJiPyajzLC87\r\nhbhkW7H5qYvuoaJqylLVwOblHzq9g3Ts+ZplhoT5IRmlxsmifFtj2SSVdtiq\r\nxStHslTE5NHDBvvHShbFLPkkDMMf52HEGy1bt47L5FC9vemA0Ku8m8MV3XGp\r\nmvNDW7f9AsRApbTvzWrQvSFkc2pQB8u1Ts9pcoUMhJEPMMlRdebmE96t4gTa\r\nMHLIgp2h2xdvVZ2irEnI8RedkS+VImH0XPbdLPQ5hbie2hZ3MzKEVCk4nHCx\r\n8dxo3s/gSqS5SEGlZ9rnjvrj7f0hpgIdXvlL1LNBssvcETk/n/MqVvhr0umx\r\naGKx+684ZuoTaSW+eO9IBZWwqKjiN9uasYJk2DswKPkmt2iqSyoC7z+ZzTTT\r\nL5I9J11T+DWX64Be4T4+fzzP4CvdyeF3vj+bsWMqt2c8bLk/sWiPZAHYN1Kf\r\nBJlomVKV4bwnyu9S3j6wUt0M0JDcW1kqloc=\r\n=21xB\r\n-----END PGP SIGNATURE-----\r\n","size":2397,"noattachment":false,"key":"/@putout/plugin-remove-iife/-/@putout/plugin-remove-iife-3.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_3.1.0_1674121292381_0.0768393521834807"},"_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":1674121292549,"_cnpm_publish_time":1674121292549,"dist-tags":{"latest":"5.1.0"}}