{"name":"babel-plugin-transform-async-to-module-method","version":"7.0.0-beta.3","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-helper-module-imports":"7.0.0-beta.3","babel-helper-remap-async-to-generator":"7.0.0-beta.3","babel-plugin-syntax-async-functions":"7.0.0-beta.0","babel-types":"7.0.0-beta.3"},"devDependencies":{"babel-helper-plugin-test-runner":"7.0.0-beta.3"},"_id":"babel-plugin-transform-async-to-module-method@7.0.0-beta.3","_npmVersion":"5.5.1","_nodeVersion":"8.1.4","_npmUser":{"name":"hzoo","email":"hi@henryzoo.com"},"dist":{"integrity":"sha512-58N3snM6/PVkV598C+NTngQavyi8i+0LaKBbgepmrAKEzgB7T7wnPxePuR4LTdjybZ3KiuMHPvuKP/WTL44Tlw==","shasum":"fbf7e095b0c80f8ce510f4555f13f4cbb64adb57","tarball":"http://registry-npm.ywwl.com/babel-plugin-transform-async-to-module-method/download/babel-plugin-transform-async-to-module-method-7.0.0-beta.3.tgz","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDKvVQT9fo7+05JjlIPv4TzxbalSmXNS4zojRdDAxg72gIhAM/lOM9l7vDMSen3EFsGBS4q8ZNeVLLbVbuNwUPPJSjZ"}],"size":1154,"noattachment":false,"key":"/babel-plugin-transform-async-to-module-method/-/babel-plugin-transform-async-to-module-method-7.0.0-beta.3.tgz"},"maintainers":[{"email":"bng412@gmail.com","name":"existentialism"},{"email":"me@thejameskyle.com","name":"thejameskyle"},{"email":"sebmck@gmail.com","name":"sebmck"},{"email":"daniel@tschinder.de","name":"danez"},{"email":"hi@henryzoo.com","name":"hzoo"},{"email":"loganfsmyth@gmail.com","name":"loganfsmyth"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/babel-plugin-transform-async-to-module-method-7.0.0-beta.3.tgz_1508073170567_0.1419472044799477"},"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":1508073171528,"_cnpm_publish_time":1508073171528,"dist-tags":{"latest":"6.24.1","next":"7.0.0-beta.3"}}