{ "_args": [ [ { "raw": "babel-plugin-transform-regenerator@^6.5.0", "scope": null, "escapedName": "babel-plugin-transform-regenerator", "name": "babel-plugin-transform-regenerator", "rawSpec": "^6.5.0", "spec": ">=6.5.0 <7.0.0", "type": "range" }, "/home/jdaugherty/work/GT2/GT2-Android/node_modules/babel-preset-react-native" ] ], "_from": "babel-plugin-transform-regenerator@>=6.5.0 <7.0.0", "_id": "babel-plugin-transform-regenerator@6.26.0", "_inCache": true, "_location": "/babel-plugin-transform-regenerator", "_nodeVersion": "6.9.0", "_npmOperationalInternal": { "host": "s3://npm-registry-packages", "tmp": "tmp/babel-plugin-transform-regenerator-6.26.0.tgz_1502898849637_0.9644891484640539" }, "_npmUser": { "name": "hzoo", "email": "hi@henryzoo.com" }, "_npmVersion": "4.6.1", "_phantomChildren": {}, "_requested": { "raw": "babel-plugin-transform-regenerator@^6.5.0", "scope": null, "escapedName": "babel-plugin-transform-regenerator", "name": "babel-plugin-transform-regenerator", "rawSpec": "^6.5.0", "spec": ">=6.5.0 <7.0.0", "type": "range" }, "_requiredBy": [ "/babel-preset-react-native" ], "_resolved": "https://registry.npmjs.org/babel-plugin-transform-regenerator/-/babel-plugin-transform-regenerator-6.26.0.tgz", "_shasum": "e0703696fbde27f0a3efcacf8b4dca2f7b3a8f2f", "_shrinkwrap": null, "_spec": "babel-plugin-transform-regenerator@^6.5.0", "_where": "/home/jdaugherty/work/GT2/GT2-Android/node_modules/babel-preset-react-native", "author": { "name": "Ben Newman", "email": "bn@cs.stanford.edu" }, "dependencies": { "regenerator-transform": "^0.10.0" }, "description": "Explode async and generator functions into a state machine.", "devDependencies": { "babel-helper-plugin-test-runner": "^6.24.1" }, "directories": {}, "dist": { "shasum": "e0703696fbde27f0a3efcacf8b4dca2f7b3a8f2f", "tarball": "https://registry.npmjs.org/babel-plugin-transform-regenerator/-/babel-plugin-transform-regenerator-6.26.0.tgz" }, "homepage": "https://github.com/babel/babel/tree/master/packages/babel-plugin-transform-regenerator", "license": "MIT", "main": "lib/index.js", "maintainers": [ { "name": "thejameskyle", "email": "me@thejameskyle.com" }, { "name": "sebmck", "email": "sebmck@gmail.com" }, { "name": "danez", "email": "daniel@tschinder.de" }, { "name": "hzoo", "email": "hi@henryzoo.com" }, { "name": "loganfsmyth", "email": "loganfsmyth@gmail.com" } ], "name": "babel-plugin-transform-regenerator", "optionalDependencies": {}, "readme": "# babel-plugin-transform-regenerator\n\n> Transform async/generator functions with [regenerator](https://github.com/facebook/regenerator)\n\n## Example\n\n**In**\n\n```javascript\nfunction* a() {\n yield 1;\n}\n```\n\n**Out**\n\n```javascript\nvar _marked = [a].map(regeneratorRuntime.mark);\n\nfunction a() {\n return regeneratorRuntime.wrap(function a$(_context) {\n while (1) {\n switch (_context.prev = _context.next) {\n case 0:\n _context.next = 2;\n return 1;\n\n case 2:\n case \"end\":\n return _context.stop();\n }\n }\n }, _marked[0], this);\n}\n```\n\n## Installation\n\n```sh\nnpm install --save-dev babel-plugin-transform-regenerator\n```\n\n## Usage\n\n### Via `.babelrc` (Recommended)\n\nWithout options:\n\n```json\n{\n \"plugins\": [\"transform-regenerator\"]\n}\n```\n\nWith options:\n\n|name|default value|\n|---|---|\n|asyncGenerators|true|\n|generators|true|\n|async|true|\n\n```json\n{\n \"plugins\": [\n [\"transform-regenerator\", {\n \"asyncGenerators\": false,\n \"generators\": false,\n \"async\": false\n }]\n ]\n}\n```\n\n### Via CLI\n\n```sh\nbabel --plugins transform-regenerator script.js\n```\n\n### Via Node API\n\n```javascript\nrequire(\"babel-core\").transform(\"code\", {\n plugins: [\"transform-regenerator\"]\n});\n```\n", "readmeFilename": "README.md", "repository": { "type": "git", "url": "https://github.com/babel/babel/tree/master/packages/babel-plugin-transform-regenerator" }, "scripts": {}, "version": "6.26.0" }