{"name":"@putout/plugin-apply-top-level-await","version":"1.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":"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":"^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":">=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.2","_nodeVersion":"13.7.0","_npmVersion":"6.12.1","dist":{"integrity":"sha512-Cd8tJ5NCxJclpU5DL2YAC6CxwFqBOPirzdxTZApcsObTyuiedZnq8pn3SLTiCbAkBnqoUuudgWXJMGljRtNMew==","shasum":"b1a42d0f57d0761a2fb3bf47b5bbc7c515c160a4","tarball":"http://registry-npm.ywwl.com/@putout/plugin-apply-top-level-await/download/@putout/plugin-apply-top-level-await-1.0.2.tgz","fileCount":4,"unpackedSize":4457,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJeN+88CRA9TVsSAnZWagAAhWIQAKBoPJluQ78niAfTjy3z\neP+rtSQlOlkSDcpimeA60IFwVnu+iuy74CdkAFINvrxr9/kzn7iJMSFcdb9T\nbcbgSUncxSBrv3xe3f0089qevOhJKJnnJtiFTCH2LMct3PpVoR5nB83/zESR\n7y3XYaVYZohy1gtwXrHVTgzCTr8BwJo7dqDOhXHxKlWYs3Pzhh5fXGjmWYNM\n3Ksjl/INXUW/OK2n2T+SoqWn0i8Sue3sp5XkvGsFsK6YW4B2F3KveponeuR5\ndVsNhTP1VHxyjoNZY2DMXeXLDgYQAnDTfWGw5tPTMS4ABUq/Twg4V7k6CbZn\n5Yyz0GZajvpF4FOrKXnC2XX6T5m82EFZvnoiduooYrIKUOplJU8KgI/AUcwl\nTWpz0++DBC/lXxC5GLo0d2XDQfT67mERIV0qM5LKmaKc3mDpALh2uJh6G4PR\no5iZb3nNBKvXW7scSB3tnMSv5ac8Pnakfo7jUabvqHsoN2tM33GUt+gJdrR2\nlzEBClBi6ZkFP0TDo4SaL7TBTPRsbdEz7+N+2/oiFLvSFJPL9Dn6NfX2gUw+\nEQLVRpxSGqOeF79QA7rJfbTdzh+POhMTyac1O8+a1MIFFe6BXdGVV93i2W2y\n2/+J6tPVUAYfVNWyPE+bhfyOjUsGUPrt+174axDJ0XvcknieB+qpkKjP8mbT\nR0tX\r\n=LXW6\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIAsMf5sea76hUcMyms3rvenWvuHpXMfGn+4QSpW0g11HAiEA7296oHmlGafEvCSrA4nhC6NXKdn2QochAzVcqJ0LhP4="}],"size":2066,"noattachment":false,"key":"/@putout/plugin-apply-top-level-await/-/@putout/plugin-apply-top-level-await-1.0.2.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.2_1580724028288_0.25892135273559536"},"_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":1580724028447,"_cnpm_publish_time":1580724028447,"dist-tags":{"latest":"2.0.2"}}