{"name":"@putout/plugin-remove-iife","version":"3.0.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":"06b9d6d3e5ae7cf76424a57e63c3500c279852e4","bugs":{"url":"https://github.com/coderaiser/putout/issues"},"_id":"@putout/plugin-remove-iife@3.0.0","_nodeVersion":"18.13.0","_npmVersion":"9.1.3","dist":{"integrity":"sha512-+F7jZVcK7akfUrED9FcgTt3XR0vcebhpril2PSh8wKhIByNxpjaQtctsnUXXLHEMAC/SNePNGir8CE4C7swxpA==","shasum":"d9f00fbf56ef9d016ab20362279cb9b5bd8df0e1","tarball":"http://registry-npm.ywwl.com/@putout/plugin-remove-iife/download/@putout/plugin-remove-iife-3.0.0.tgz","fileCount":4,"unpackedSize":4754,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCICIyGtmrJVfMET0/4qsrfse+rieBtopeBrtp/2G/2eLQAiEAwsG9WHdF8iG5Skpf/Be48W3UfXpIahaGRiyfbdT6WWM="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjyAHxACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmqB+BAAkbURDaRFT+TdTfoEj92N9+GZiwTjrPXv5bSpTB/67rz8vz4C\r\nxwCQum65yGBFAihJ6w4APnhfA4+WNLM3+1eBLcD5oLcTeaBbwd3SPwejSX2R\r\n8/MRGDY53QAbDYHGr5rLpjgrebbXHEmdpmFMlZ4511VnBQH3TfN2WF9sE222\r\nwv0A2qJbCKC9Jqy7Qc482WBoZ3wKBYr0kTSKVFKl/oFioUBUrzwTfyd+NRYH\r\nsIPolDru0yCwA721JSA2zGgJG24g2ZY2NGDfyZgVjw494nflCb4ISId2dr7Q\r\npAx6OkVUEytttwvx0MKp11gl8PdfnXE0T+8D5z2ZI60P7r9pOcmw0E94XtRS\r\nowkyEXXd6eWwTVDRCK697SX2c4GXPfglxqsuB3o4E2wsIgnktkFuAvclGjYK\r\nkdELBNffbs0lnf006Vh3WzZrryZXIDeUjFW+V+6qkpBmoJ2q0TW51+Yq7ljd\r\n+XRx2TkFg4VCHdUa6lvZIVvPJNANOzqHuMrVMFMir8Rn7sc6Srx+5ipLgsmx\r\n3UNZMJNe39eocUYt7EEtjD9Z1qiHg8Z06ytZKUGHzLJYSvWG6X1x7nbUuXcA\r\n7NL4/0wc5JSqu/vxttS30hGljaQ67IIpKy0lnX9ErxZDIU2TFGOOPD5fnYjQ\r\nRufW4mdRgjqKGd851qlZBY3RYMJs6CyQGe4=\r\n=T/r6\r\n-----END PGP SIGNATURE-----\r\n","size":2382,"noattachment":false,"key":"/@putout/plugin-remove-iife/-/@putout/plugin-remove-iife-3.0.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.0.0_1674052081471_0.7756013490429869"},"_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":1674052081613,"_cnpm_publish_time":1674052081613,"dist-tags":{"latest":"5.1.0"}}