{"name":"@putout/plugin-apply-top-level-await","version":"2.0.2","author":{"name":"coderaiser","email":"mnemonic.enemy@gmail.com","url":"https://github.com/coderaiser"},"description":"putout plugin adds ability to apply top level await","homepage":"https://github.com/coderaiser/putout/tree/v24.5.0/packages/plugin-apply-top-level-await#readme","main":"lib/apply-top-level-await.js","release":false,"tag":false,"changelog":false,"repository":{"type":"git","url":"git://github.com/coderaiser/putout.git"},"scripts":{"test":"madrun test","lint":"madrun lint","fix:lint":"madrun fix:lint","coverage":"madrun coverage"},"dependencies":{"fullstore":"^3.0.0"},"keywords":["putout","putout-plugin","plugin","top-level-await"],"devDependencies":{"@putout/test":"^1.0.0","coveralls":"^3.0.0","eslint":"^6.2.0","eslint-plugin-node":"^11.0.0","eslint-plugin-putout":"^3.0.0","lerna":"^3.8.5","madrun":"^5.0.0","nodemon":"^2.0.1","nyc":"^14.0.0","supertape":"^1.0.3"},"peerDependencies":{"putout":">=7.17"},"license":"MIT","engines":{"node":">=8.3.0"},"publishConfig":{"access":"public"},"gitHead":"9dbf1ad303cc64052720d726e9de58ee89144188","bugs":{"url":"https://github.com/coderaiser/putout/issues"},"_id":"@putout/plugin-apply-top-level-await@2.0.2","_nodeVersion":"16.13.2","_npmVersion":"8.3.0","dist":{"integrity":"sha512-tmCoczg7Oz6Zbzvp9DBApU4sfnpVCZhj+BdUM275LJcgP0QrhM3E/4IbaGMnltgX6Gvjc1QEmN+kPxUPxwH63g==","shasum":"ed61ac4ee9bb04834715d0eb0f0c5271abbc95c4","tarball":"http://registry-npm.ywwl.com/@putout/plugin-apply-top-level-await/download/@putout/plugin-apply-top-level-await-2.0.2.tgz","fileCount":4,"unpackedSize":4378,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJiAPTDCRA9TVsSAnZWagAA2qMP+wbqgfcR7bDmb4eLQCMn\nYSb9hITpHFlL+DXwB1gd+vKUuoNv4KX3yIsacu7S4+2gY6lwEtxWhOVzob45\nMMd6XtRFiNdd8cUf+VXSveXobB2J8TMZmNGPVBL4W/qzSZhWD+3lJAM9KE0I\nnycuNoFoA1jamdXBuZvrcy3EcxCzFvG/fgCHYoL/v4ItMCYMHlCguhAOS9sU\n4eezZlwv80koHOWtBJOojtZlUmbkN6D1F4Pu79M2O7vxl8L5K5qSdl6lF4p8\nw5MU5ZjTDK8GUL/ajDo6BSFCSL6rCMtGIUig+t4sOwQ1LE9Dy5KqsAg3bZqp\nEgTbTDL814BAGT0qsuznJwLjFMcxWvJlT4mnKmg1Vca9r1QP8MM+6UcX/LIQ\npFAhxjbJQ5CIDx+EIa2Dt94QQ1fAppw/8Q+tyrQSZXM0XZNqY5uIlSl7Kahu\nu1nK2hfC/WzC+R4Pp4vnhLALfBJXvneBcEh5gxoyBQtm2v3I7cJLS9cMa3Ul\nUKW88qYrlR25MwrF0n+fO7uhsJoY12OWytrFynU+Ou6R2owuRjswn2StIJ02\nluomiRDPl3hVmR2DlQcZiLYAk7Af1+mIcaw49Fyxphdy1WwNrrUBZmzaRBAI\nW1grhXGwAx6g8GY/iC/Z8BgElghQlLdxxLL6hMD0E8r2IZKQiFzlFAAtNnOG\nLCeG\r\n=qVCY\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCqwePvOrEqPnN2baFZ/RP67QcJqxYVl4SmZhHEGt5KGAIhAP7ibeC97XhiBbbGtAkE6n/eh/HOulzfq98HrgduP3dx"}],"size":2059,"noattachment":false,"key":"/@putout/plugin-apply-top-level-await/-/@putout/plugin-apply-top-level-await-2.0.2.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-apply-top-level-await_2.0.2_1644229827784_0.9263772596369508"},"_hasShrinkwrap":false,"readme":"# @putout/plugin-apply-top-level-await [![NPM version][NPMIMGURL]][NPMURL]\n\n[NPMIMGURL]: https://img.shields.io/npm/v/@putout/plugin-apply-top-level-await.svg?style=flat&longCache=true\n[NPMURL]: https://npmjs.org/package/@putout/plugin-apply-top-level-await\"npm\"\n\n🐊[`Putout`](https://github.com/coderaiser/putout) plugin applies [top-level-await](https://v8.dev/features/top-level-await). Part of [@putout/promises](https://github.com/coderaiser/putout/tree/v24.5.0/packages/plugin-promises).\n\n## Install\n\n```\nnpm i @putout/plugin-apply-top-level-await\n```\n\n## Rule\n\n```json\n{\n    \"rules\": {\n        \"apply-top-level-await\": \"on\"\n    }\n}\n```\n\n## ❌ Incorrect code example\n\n```js\nimport fs from 'fs';\n(async () => {\n    const data = await fs.promises.readFile('hello.txt');\n})();\n```\n\n## ✅ Correct code Example\n\n```js\nimport fs from 'fs';\nconst data = await fs.promises.readFile('hello.txt');\n```\n\n## License\n\nMIT\n","publish_time":1644229827922,"_cnpm_publish_time":1644229827922,"dist-tags":{"latest":"2.0.2"}}