{"name":"babel-plugin-transform-async-to-module-method","version":"6.8.0","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":"^6.8.0","babel-helper-remap-async-to-generator":"^6.8.0","babel-types":"^6.8.0","babel-runtime":"^6.0.0"},"devDependencies":{"babel-helper-plugin-test-runner":"^6.8.0"},"_id":"babel-plugin-transform-async-to-module-method@6.8.0","scripts":{},"_shasum":"e515913e3a466628eb6e8cdb132f5ed95e88ddf6","_from":".","_npmVersion":"3.8.6","_nodeVersion":"5.1.0","_npmUser":{"name":"hzoo","email":"hi@henryzoo.com"},"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"}],"dist":{"shasum":"e515913e3a466628eb6e8cdb132f5ed95e88ddf6","tarball":"http://registry-npm.ywwl.com/babel-plugin-transform-async-to-module-method/download/babel-plugin-transform-async-to-module-method-6.8.0.tgz","integrity":"sha512-0km1vDmRfHOyEqVAM4MJKe/O4eqa552EJzO1gOhz6LeDSNOHaGxvYMGf00l1FVrljsF2pGhELFvFvI2YGmD9RQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCQeRNkXAYBpSh0aIZrgGZ1FxJewlOuDaLbqmCDR1pYzQIhAN1cxAEaHXrqgRER50LBgNO0oWK6cv42vpDU20Kff/3B"}],"size":1065,"noattachment":false,"key":"/babel-plugin-transform-async-to-module-method/-/babel-plugin-transform-async-to-module-method-6.8.0.tgz"},"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/babel-plugin-transform-async-to-module-method-6.8.0.tgz_1462232668013_0.26185519248247147"},"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":1462232670394,"_cnpm_publish_time":1462232670394,"dist-tags":{"latest":"6.24.1","next":"7.0.0-beta.3"}}