{"name":"babel-plugin-transform-async-to-module-method","version":"7.0.0-alpha.7","description":"Turn async functions into a module method","repository":{"type":"git","url":"https://github.com/babel/babel/tree/master/packages/babel-plugin-transform-async-to-module-method"},"license":"MIT","main":"lib/index.js","keywords":["babel-plugin"],"dependencies":{"babel-plugin-syntax-async-functions":"7.0.0-alpha.3","babel-helper-remap-async-to-generator":"7.0.0-alpha.7","babel-types":"7.0.0-alpha.7"},"devDependencies":{"babel-helper-plugin-test-runner":"7.0.0-alpha.7"},"_id":"babel-plugin-transform-async-to-module-method@7.0.0-alpha.7","scripts":{},"_shasum":"32f7e1c933a7e919dc5931f22e6b39b978e8b512","_from":".","_npmVersion":"3.10.10","_nodeVersion":"6.9.0","_npmUser":{"name":"hzoo","email":"hi@henryzoo.com"},"dist":{"shasum":"32f7e1c933a7e919dc5931f22e6b39b978e8b512","tarball":"http://registry-npm.ywwl.com/babel-plugin-transform-async-to-module-method/download/babel-plugin-transform-async-to-module-method-7.0.0-alpha.7.tgz","integrity":"sha512-r4Cx28zp956XSzluaWh3sFUfmX+cB5B9oqut2uqNLAUYxb1JNYxd9CyUBOBSczjOjwzWwl2atH+FjcTaKfUUfg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIFMN6TY6PKhfeUBWpW1Jxg4A5T6cYECRIjW8MnkoE60mAiBLVeFDrs2V0dU6bdiVXAacqS6+OlLs2hdVZeDeESIl6A=="}],"size":1125,"noattachment":false,"key":"/babel-plugin-transform-async-to-module-method/-/babel-plugin-transform-async-to-module-method-7.0.0-alpha.7.tgz"},"maintainers":[{"name":"amasad","email":"amjad.masad@gmail.com"},{"name":"hzoo","email":"hi@henryzoo.com"},{"name":"jmm","email":"npm-public@jessemccarthy.net"},{"name":"loganfsmyth","email":"loganfsmyth@gmail.com"},{"name":"sebmck","email":"sebmck@gmail.com"},{"name":"thejameskyle","email":"me@thejameskyle.com"}],"_npmOperationalInternal":{"host":"packages-18-east.internal.npmjs.com","tmp":"tmp/babel-plugin-transform-async-to-module-method-7.0.0-alpha.7.tgz_1491426871080_0.3561656242236495"},"directories":{},"readme":"# babel-plugin-transform-async-to-module-method\n\n> Turn async functions into a Bluebird coroutine\n\n## Example\n\n**In**\n\n```javascript\nasync function foo() {\n  await bar();\n}\n```\n\n**Out**\n\n```javascript\nvar Bluebird = require(\"bluebird\");\n\nvar foo = Bluebird.coroutine(function* () {\n  yield bar();\n});\n```\n\n## Installation\n\n```sh\nnpm install --save-dev babel-plugin-transform-async-to-module-method\n```\n\n## Usage\n\n### Via `.babelrc` (Recommended)\n\n**.babelrc**\n\nWithout options:\n\n```json\n{\n  \"plugins\": [\"transform-async-to-module-method\"]\n}\n```\n\nWith options:\n\n```json\n{\n  \"plugins\": [\n    [\"transform-async-to-module-method\", {\n      \"module\": \"bluebird\",\n      \"method\": \"coroutine\"\n    }]\n  ]\n}\n```\n\n### Via CLI\n\n```sh\nbabel --plugins transform-async-to-module-method script.js\n```\n\n### Via Node API\n\n```javascript\nrequire(\"babel-core\").transform(\"code\", {\n  plugins: [\"transform-async-to-module-method\"]\n});\n```\n","publish_time":1491426872080,"_cnpm_publish_time":1491426872080,"dist-tags":{"latest":"6.24.1","next":"7.0.0-beta.3"}}