{"name":"@putout/plugin-apply-top-level-await","version":"1.0.1","author":{"name":"coderaiser","email":"mnemonic.enemy@gmail.com","url":"https://github.com/coderaiser"},"description":"putout plugin adds ability to apply top level await","homepage":"http://github.com/coderaiser/putout","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":"^2.0.2"},"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":"^10.0.0","eslint-plugin-putout":"^2.0.0","lerna":"^3.8.5","madrun":"^3.0.0","nodemon":"^1.14.12","nyc":"^14.0.0","supertape":"^1.0.3"},"peerDependencies":{"putout":">=4.36"},"license":"MIT","engines":{"node":">=8.3.0"},"publishConfig":{"access":"public"},"bugs":{"url":"https://github.com/coderaiser/putout/issues"},"_id":"@putout/plugin-apply-top-level-await@1.0.1","_nodeVersion":"12.11.1","_npmVersion":"6.11.3","dist":{"integrity":"sha512-QxHRwvIXElWTMYj3qZUCIh/U7lL1fOr30i37sVRfMvg7+X1lAkz9nE4u7fyOtlwR1RiBf3/FGiE2IUlhJj+oDg==","shasum":"8df88b294fee8fe5256b0c301d1a7628d0154128","tarball":"http://registry-npm.ywwl.com/@putout/plugin-apply-top-level-await/download/@putout/plugin-apply-top-level-await-1.0.1.tgz","fileCount":4,"unpackedSize":4477,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdoPTcCRA9TVsSAnZWagAA51AQAJZ3lCyj/YtnGFqZ/KDF\nLPm+ewp5fGdtz1oLJvoDt4lWf0xAe5Cecj3WrzeVthxMmH6DyCarehEZmjaK\nFN4TtYQv/n2U1kxIwuzvA1DsIfJFXRyktJFk23yQC3uZHOEmXfjLe3DyKzPQ\nLjKJmB8uSOR5dLAuj1J10GZIKjgz4ZtiOXHoxn3rx9guZc/EnqepEdSorlny\ng4JYCOYeyt8UeZlOYrVICxTfApB8qWOfnbUpHuTcYLBnoI1bC1gepWM8AXga\nk4stpgwHZI6bWHeqVUK8zSGkDG9e2Uus9das3OikhMQ+K6BY31cr0rv/TB6N\nbbkjVxIxjIV19Kl9p6i/2Lh8k5nyj5UcA7Bf06ngb346CXOCyd7aSUTZV2gv\nbkjAy68JG2+ACFlH4fH0uYhZxNSY8HNNHTmpW/OEWpK5sSBEl/tPjHEoNfo9\n2qo8EvcRSyzp0Uxvx9sfedMoEdVexW3CKSs+WXLbh10zYqJzQBpMs8Yg7e/1\ntygkE6VEfYbQtEpw9JjXY3S+ER0xBAxyp9q32CucGJSN1HctoJbaGIPr4Xy5\nYNGNwB18MN+yQiRrS8WWodQifCiYW0iVw3GcBu1eAfPJTLrxmAPbeZu91feA\np/vfLLul0QRzB3SC004GP3ntVAJQ85i5Hg2eZF+y3DbXe7Xdg87tFhJdZkZU\nCHww\r\n=fQ3J\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQD8qdY0bdrjaXTH26DA9V/JiKZ3d/OOzOb8OA10AcXqwQIgNanYTIFO/5E2Q9iRzcsbILzqV0g0W6lSDdWVunIZsDo="}],"size":2070,"noattachment":false,"key":"/@putout/plugin-apply-top-level-await/-/@putout/plugin-apply-top-level-await-1.0.1.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-apply-top-level-await_1.0.1_1570829532215_0.6312139710376758"},"_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":1570829532382,"_cnpm_publish_time":1570829532382,"dist-tags":{"latest":"2.0.2"}}