{"_id":"async-to-gen","_rev":"308882","name":"async-to-gen","description":"Transform async functions to generator functions with speed and simplicity.","dist-tags":{"latest":"1.4.0"},"maintainers":[{"name":"leebyron","email":"lee@leebyron.com"}],"time":{"modified":"2021-06-03T19:41:47.000Z","created":"2016-08-11T02:36:57.306Z","1.4.0":"2018-02-15T22:04:27.566Z","1.3.3":"2017-05-01T20:15:20.191Z","1.3.2":"2017-01-26T19:34:47.302Z","1.3.1":"2017-01-26T19:00:39.983Z","1.3.0":"2016-12-09T02:54:10.017Z","1.2.0":"2016-11-20T20:49:54.990Z","1.1.5":"2016-11-20T14:30:48.631Z","1.1.4":"2016-10-07T09:36:58.267Z","1.1.3":"2016-09-16T15:17:31.456Z","1.1.2":"2016-09-16T15:12:12.038Z","1.1.1":"2016-09-15T02:14:38.390Z","1.1.0":"2016-09-09T15:38:59.476Z","1.0.6":"2016-09-07T17:23:03.473Z","1.0.5":"2016-08-13T21:08:11.573Z","1.0.4":"2016-08-13T20:50:47.504Z","1.0.3":"2016-08-13T17:54:15.457Z","1.0.2":"2016-08-13T00:43:07.996Z","1.0.1":"2016-08-11T21:37:34.657Z","1.0.0":"2016-08-11T02:36:57.306Z"},"users":{},"author":{"name":"Lee Byron","email":"lee@leebyron.com","url":"http://leebyron.com/"},"repository":{"type":"git","url":"git+ssh://git@github.com/leebyron/async-to-gen.git"},"versions":{"1.4.0":{"name":"async-to-gen","version":"1.4.0","description":"Transform async functions to generator functions with speed and simplicity.","author":{"name":"Lee Byron","email":"lee@leebyron.com","url":"http://leebyron.com/"},"license":"BSD-3-Clause","main":"index.js","bin":{"async-to-gen":"./async-to-gen","async-node":"./async-node"},"homepage":"https://github.com/leebyron/async-to-gen","bugs":{"url":"https://github.com/leebyron/async-to-gen/issues"},"repository":{"type":"git","url":"git+ssh://git@github.com/leebyron/async-to-gen.git"},"scripts":{"test":"DIFF=$(./async-to-gen test/source.js | diff test/expected.js -); if [ -n \"$DIFF\" ]; then echo \"$DIFF\"; exit 1; fi; RES=$(node -e 'require(\"./register\");require(\"./test/test-node-module.js\")'); if [ \"$RES\" != 42 ]; then echo 'Node register hook failed'; exit 1; fi; ASYNC_NODE=$(./async-node ./test/test-node-module.js); if [ \"$ASYNC_NODE\" != 42 ]; then echo 'async-node failed'; exit 1; fi; ASYNC_GEN_NODE=$(./async-node ./test/test-async-generator.js); if [ \"$ASYNC_GEN_NODE\" != 42 ]; then echo 'async-node failed for async generators'; exit 1; fi; ./async-to-gen test/memtest.js | node --max-old-space-size=10;","test-update":"./async-to-gen test/source.js > test/expected.js"},"files":["index.js","register.js","async-to-gen","async-node","LICENSE"],"keywords":["async","await","async-await","for-await","for-await-of","generators","compiler","transpiler","transform","es7"],"dependencies":{"babylon":"^6.14.0","magic-string":"^0.22.0","pirates":"^3.0.2"},"gitHead":"87def0a9a0400904c962ec445e42fa3687a115bd","_id":"async-to-gen@1.4.0","_shasum":"f8157f9013e0c487e1e940150a4d1a1b78b2dd6b","_from":".","_npmVersion":"2.14.4","_nodeVersion":"4.1.1","_npmUser":{"name":"leebyron","email":"lee@leebyron.com"},"dist":{"shasum":"f8157f9013e0c487e1e940150a4d1a1b78b2dd6b","size":14854,"noattachment":false,"key":"/async-to-gen/-/async-to-gen-1.4.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/async-to-gen/download/async-to-gen-1.4.0.tgz"},"maintainers":[{"name":"leebyron","email":"lee@leebyron.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/async-to-gen_1.4.0_1518732267512_0.8987209259414255"},"_hasShrinkwrap":false,"publish_time":1518732267566,"_cnpm_publish_time":1518732267566},"1.3.3":{"name":"async-to-gen","version":"1.3.3","description":"Transform async functions to generator functions with speed and simplicity.","author":{"name":"Lee Byron","email":"lee@leebyron.com","url":"http://leebyron.com/"},"license":"BSD-3-Clause","main":"index.js","bin":{"async-to-gen":"./async-to-gen","async-node":"./async-node"},"homepage":"https://github.com/leebyron/async-to-gen","bugs":{"url":"https://github.com/leebyron/async-to-gen/issues"},"repository":{"type":"git","url":"git+ssh://git@github.com/leebyron/async-to-gen.git"},"scripts":{"test":"DIFF=$(./async-to-gen test/source.js | diff test/expected.js -); if [ -n \"$DIFF\" ]; then echo \"$DIFF\"; exit 1; fi; RES=$(node -e 'require(\"./register\");require(\"./test/test-node-module.js\")'); if [ \"$RES\" != 42 ]; then echo 'Node register hook failed'; exit 1; fi; ASYNC_NODE=$(./async-node ./test/test-node-module.js); if [ \"$ASYNC_NODE\" != 42 ]; then echo 'async-node failed'; exit 1; fi; ASYNC_GEN_NODE=$(./async-node ./test/test-async-generator.js); if [ \"$ASYNC_GEN_NODE\" != 42 ]; then echo 'async-node failed for async generators'; exit 1; fi; ./async-to-gen test/memtest.js | node --max-old-space-size=10;","test-update":"./async-to-gen test/source.js > test/expected.js"},"files":["index.js","register.js","async-to-gen","async-node","LICENSE"],"keywords":["async","await","async-await","for-await","for-await-of","generators","compiler","transpiler","transform","es7"],"dependencies":{"babylon":"^6.14.0","magic-string":"^0.19.0"},"gitHead":"58d0f35b54333029d99569fcd46452d583346e61","_id":"async-to-gen@1.3.3","_shasum":"d52c9fb4801f0df44abc4d2de1870b48b60e20bb","_from":".","_npmVersion":"4.2.0","_nodeVersion":"7.9.0","_npmUser":{"name":"leebyron","email":"lee@leebyron.com"},"dist":{"shasum":"d52c9fb4801f0df44abc4d2de1870b48b60e20bb","size":14788,"noattachment":false,"key":"/async-to-gen/-/async-to-gen-1.3.3.tgz","tarball":"http://registry.cnpm.dingdandao.com/async-to-gen/download/async-to-gen-1.3.3.tgz"},"maintainers":[{"name":"leebyron","email":"lee@leebyron.com"}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/async-to-gen-1.3.3.tgz_1493669719889_0.7115095660556108"},"directories":{},"publish_time":1493669720191,"_cnpm_publish_time":1493669720191,"_hasShrinkwrap":false},"1.3.2":{"name":"async-to-gen","version":"1.3.2","description":"Transform async functions to generator functions with speed and simplicity.","author":{"name":"Lee Byron","email":"lee@leebyron.com","url":"http://leebyron.com/"},"license":"BSD-3-Clause","main":"index.js","bin":{"async-to-gen":"./async-to-gen","async-node":"./async-node"},"homepage":"https://github.com/leebyron/async-to-gen","bugs":{"url":"https://github.com/leebyron/async-to-gen/issues"},"repository":{"type":"git","url":"git+ssh://git@github.com/leebyron/async-to-gen.git"},"scripts":{"test":"DIFF=$(./async-to-gen test/source.js | diff test/expected.js -); if [ -n \"$DIFF\" ]; then echo \"$DIFF\"; exit 1; fi; RES=$(node -e 'require(\"./register\");require(\"./test/test-node-module.js\")'); if [ \"$RES\" != 42 ]; then echo 'Node register hook failed'; exit 1; fi; ASYNC_NODE=$(./async-node ./test/test-node-module.js); if [ \"$ASYNC_NODE\" != 42 ]; then echo 'async-node failed'; exit 1; fi; ASYNC_GEN_NODE=$(./async-node ./test/test-async-generator.js); if [ \"$ASYNC_GEN_NODE\" != 42 ]; then echo 'async-node failed for async generators'; exit 1; fi; ./async-to-gen test/memtest.js | node --max-old-space-size=10;","test-update":"./async-to-gen test/source.js > test/expected.js"},"files":["index.js","register.js","async-to-gen","async-node","LICENSE"],"keywords":["async","await","async-await","for-await","for-await-of","generators","compiler","transpiler","transform","es7"],"dependencies":{"babylon":"^6.14.0","magic-string":"^0.19.0"},"gitHead":"884a4c9f823abb4d4e3dc6808b244af2bb78ad20","_id":"async-to-gen@1.3.2","_shasum":"7296908a9697a6bb0a5eaff7e59f33d3f2372923","_from":".","_npmVersion":"3.10.9","_nodeVersion":"7.2.0","_npmUser":{"name":"leebyron","email":"lee@leebyron.com"},"dist":{"shasum":"7296908a9697a6bb0a5eaff7e59f33d3f2372923","size":14518,"noattachment":false,"key":"/async-to-gen/-/async-to-gen-1.3.2.tgz","tarball":"http://registry.cnpm.dingdandao.com/async-to-gen/download/async-to-gen-1.3.2.tgz"},"maintainers":[{"name":"leebyron","email":"lee@leebyron.com"}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/async-to-gen-1.3.2.tgz_1485459287034_0.7855479307472706"},"directories":{},"publish_time":1485459287302,"_cnpm_publish_time":1485459287302,"_hasShrinkwrap":false},"1.3.1":{"name":"async-to-gen","version":"1.3.1","description":"Transform async functions to generator functions with speed and simplicity.","author":{"name":"Lee Byron","email":"lee@leebyron.com","url":"http://leebyron.com/"},"license":"BSD-3-Clause","main":"index.js","bin":{"async-to-gen":"./async-to-gen","async-node":"./async-node"},"homepage":"https://github.com/leebyron/async-to-gen","bugs":{"url":"https://github.com/leebyron/async-to-gen/issues"},"repository":{"type":"git","url":"git+ssh://git@github.com/leebyron/async-to-gen.git"},"scripts":{"test":"DIFF=$(./async-to-gen test/source.js | diff test/expected.js -); if [ -n \"$DIFF\" ]; then echo \"$DIFF\"; exit 1; fi; RES=$(node -e 'require(\"./register\");require(\"./test/test-node-module.js\")'); if [ \"$RES\" != 42 ]; then echo 'Node register hook failed'; exit 1; fi; ASYNC_NODE=$(./async-node ./test/test-node-module.js); if [ \"$ASYNC_NODE\" != 42 ]; then echo 'async-node failed'; exit 1; fi; ASYNC_GEN_NODE=$(./async-node ./test/test-async-generator.js); if [ \"$ASYNC_GEN_NODE\" != 42 ]; then echo 'async-node failed for async generators'; exit 1; fi; ./async-to-gen test/memtest.js | node --max-old-space-size=10;","test-update":"./async-to-gen test/source.js > test/expected.js"},"files":["index.js","register.js","async-to-gen","async-node","LICENSE"],"keywords":["async","await","async-await","for-await","for-await-of","generators","compiler","transpiler","transform","es7"],"dependencies":{"babylon":"^6.14.0","magic-string":"^0.19.0"},"gitHead":"68e1a293d9201cdc5736fc3e3e86f2862e71f1e6","_id":"async-to-gen@1.3.1","_shasum":"edf620f5703f03328f1233cb614c346c3f30ff11","_from":".","_npmVersion":"3.10.9","_nodeVersion":"7.2.0","_npmUser":{"name":"leebyron","email":"lee@leebyron.com"},"dist":{"shasum":"edf620f5703f03328f1233cb614c346c3f30ff11","size":14461,"noattachment":false,"key":"/async-to-gen/-/async-to-gen-1.3.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/async-to-gen/download/async-to-gen-1.3.1.tgz"},"maintainers":[{"name":"leebyron","email":"lee@leebyron.com"}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/async-to-gen-1.3.1.tgz_1485457239765_0.28839365718886256"},"directories":{},"publish_time":1485457239983,"_cnpm_publish_time":1485457239983,"_hasShrinkwrap":false},"1.3.0":{"name":"async-to-gen","version":"1.3.0","description":"Transform async functions to generator functions with speed and simplicity.","author":{"name":"Lee Byron","email":"lee@leebyron.com","url":"http://leebyron.com/"},"license":"BSD-3-Clause","main":"index.js","bin":{"async-to-gen":"./async-to-gen","async-node":"./async-node"},"homepage":"https://github.com/leebyron/async-to-gen","bugs":{"url":"https://github.com/leebyron/async-to-gen/issues"},"repository":{"type":"git","url":"git+ssh://git@github.com/leebyron/async-to-gen.git"},"scripts":{"test":"DIFF=$(./async-to-gen test/source.js | diff test/expected.js -); if [ -n \"$DIFF\" ]; then echo \"$DIFF\"; exit 1; fi; RES=$(node -e 'require(\"./register\");require(\"./test/test-node-module.js\")'); if [ \"$RES\" != 42 ]; then echo 'Node register hook failed'; exit 1; fi; ASYNC_NODE=$(./async-node ./test/test-node-module.js); if [ \"$ASYNC_NODE\" != 42 ]; then echo 'async-node failed'; exit 1; fi; ASYNC_GEN_NODE=$(./async-node ./test/test-async-generator.js); if [ \"$ASYNC_GEN_NODE\" != 42 ]; then echo 'async-node failed for async generators'; exit 1; fi; ./async-to-gen test/memtest.js | node --max-old-space-size=10;","test-update":"./async-to-gen test/source.js > test/expected.js"},"files":["index.js","register.js","async-to-gen","async-node"],"keywords":["async","await","async-await","for-await","for-await-of","generators","compiler","transpiler","transform","es7"],"dependencies":{"babylon":"^6.14.0","magic-string":"^0.19.0"},"gitHead":"e96a2024c1591edeac6900fa935436794c24bafc","_id":"async-to-gen@1.3.0","_shasum":"ec1ab301ca5881de64e8ad654cd96bfd5fcc4366","_from":".","_npmVersion":"3.10.9","_nodeVersion":"7.2.0","_npmUser":{"name":"leebyron","email":"lee@leebyron.com"},"dist":{"shasum":"ec1ab301ca5881de64e8ad654cd96bfd5fcc4366","size":13950,"noattachment":false,"key":"/async-to-gen/-/async-to-gen-1.3.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/async-to-gen/download/async-to-gen-1.3.0.tgz"},"maintainers":[{"name":"leebyron","email":"lee@leebyron.com"}],"_npmOperationalInternal":{"host":"packages-18-east.internal.npmjs.com","tmp":"tmp/async-to-gen-1.3.0.tgz_1481252048203_0.7120897590648383"},"directories":{},"publish_time":1481252050017,"_cnpm_publish_time":1481252050017,"_hasShrinkwrap":false},"1.2.0":{"name":"async-to-gen","version":"1.2.0","description":"Transform async functions to generator functions with speed and simplicity.","author":{"name":"Lee Byron","email":"lee@leebyron.com","url":"http://leebyron.com/"},"license":"BSD-3-Clause","main":"index.js","bin":{"async-to-gen":"./async-to-gen","async-node":"./async-node"},"homepage":"https://github.com/leebyron/async-to-gen","bugs":{"url":"https://github.com/leebyron/async-to-gen/issues"},"repository":{"type":"git","url":"git+ssh://git@github.com/leebyron/async-to-gen.git"},"scripts":{"test":"DIFF=$(./async-to-gen test/source.js | diff test/expected.js -); if [ -n \"$DIFF\" ]; then echo \"$DIFF\"; exit 1; fi; RES=$(node -e 'require(\"./register\");require(\"./test/test-node-module.js\")'); if [ \"$RES\" != 42 ]; then echo 'Node register hook failed'; exit 1; fi; ASYNC_NODE=$(./async-node ./test/test-node-module.js); if [ \"$ASYNC_NODE\" != 42 ]; then echo 'async-node failed'; exit 1; fi; ASYNC_GEN_NODE=$(./async-node ./test/test-async-generator.js); if [ \"$ASYNC_GEN_NODE\" != 42 ]; then echo 'async-node failed for async generators'; exit 1; fi; ./async-to-gen test/memtest.js | node --max-old-space-size=10;","test-update":"./async-to-gen test/source.js > test/expected.js"},"files":["index.js","register.js","async-to-gen","async-node"],"keywords":["async","await","async-await","generators","compiler","transpiler","transform","es7"],"dependencies":{"babylon":"^6.14.0","magic-string":"^0.16.0"},"gitHead":"7b831a5ba48b769baa628d313fc34d08dc289916","_id":"async-to-gen@1.2.0","_shasum":"08f859984d958b89368317d60338b89b3d679e19","_from":".","_npmVersion":"3.10.8","_nodeVersion":"7.0.0","_npmUser":{"name":"leebyron","email":"lee@leebyron.com"},"dist":{"shasum":"08f859984d958b89368317d60338b89b3d679e19","size":13285,"noattachment":false,"key":"/async-to-gen/-/async-to-gen-1.2.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/async-to-gen/download/async-to-gen-1.2.0.tgz"},"maintainers":[{"name":"leebyron","email":"lee@leebyron.com"}],"_npmOperationalInternal":{"host":"packages-18-east.internal.npmjs.com","tmp":"tmp/async-to-gen-1.2.0.tgz_1479674994342_0.47287387819960713"},"directories":{},"publish_time":1479674994990,"_cnpm_publish_time":1479674994990,"_hasShrinkwrap":false},"1.1.5":{"name":"async-to-gen","version":"1.1.5","description":"Transform async functions to generator functions with speed and simplicity.","author":{"name":"Lee Byron","email":"lee@leebyron.com","url":"http://leebyron.com/"},"license":"BSD-3-Clause","main":"index.js","bin":{"async-to-gen":"./async-to-gen","async-node":"./async-node"},"homepage":"https://github.com/leebyron/async-to-gen","bugs":{"url":"https://github.com/leebyron/async-to-gen/issues"},"repository":{"type":"git","url":"git+ssh://git@github.com/leebyron/async-to-gen.git"},"scripts":{"test":"DIFF=$(./async-to-gen test/source.js | diff test/expected.js -); if [ -n \"$DIFF\" ]; then echo \"$DIFF\"; exit 1; fi; RES=$(node -e 'require(\"./register\");require(\"./test/test-node-module.js\")'); if [ \"$RES\" != 42 ]; then echo 'Node register hook failed'; exit 1; fi; ASYNC_NODE=$(./async-node ./test/test-node-module.js); if [ \"$ASYNC_NODE\" != 42 ]; then echo 'async-node failed'; exit 1; fi; ASYNC_GEN_NODE=$(./async-node ./test/test-async-generator.js); if [ \"$ASYNC_GEN_NODE\" != 42 ]; then echo 'async-node failed for async generators'; exit 1; fi; ./async-to-gen test/memtest.js | node --max-old-space-size=10;","test-update":"./async-to-gen test/source.js > test/expected.js"},"files":["index.js","register.js","async-to-gen","async-node"],"keywords":["async","await","async-await","generators","compiler","transpiler","transform","es7"],"dependencies":{"babylon":"^6.11.4","magic-string":"^0.16.0"},"gitHead":"77be878b64f57de1e75cbd540a383643d8944583","_id":"async-to-gen@1.1.5","_shasum":"f1cce699480c0c7c537fc7e6f4e5bd129848cab4","_from":".","_npmVersion":"3.10.8","_nodeVersion":"7.0.0","_npmUser":{"name":"leebyron","email":"lee@leebyron.com"},"dist":{"shasum":"f1cce699480c0c7c537fc7e6f4e5bd129848cab4","size":12834,"noattachment":false,"key":"/async-to-gen/-/async-to-gen-1.1.5.tgz","tarball":"http://registry.cnpm.dingdandao.com/async-to-gen/download/async-to-gen-1.1.5.tgz"},"maintainers":[{"name":"leebyron","email":"lee@leebyron.com"}],"_npmOperationalInternal":{"host":"packages-18-east.internal.npmjs.com","tmp":"tmp/async-to-gen-1.1.5.tgz_1479652248004_0.3537543062120676"},"directories":{},"publish_time":1479652248631,"_cnpm_publish_time":1479652248631,"_hasShrinkwrap":false},"1.1.4":{"name":"async-to-gen","version":"1.1.4","description":"Transform async functions to generator functions with speed and simplicity.","author":{"name":"Lee Byron","email":"lee@leebyron.com","url":"http://leebyron.com/"},"license":"BSD-3-Clause","main":"index.js","bin":{"async-to-gen":"./async-to-gen","async-node":"./async-node"},"homepage":"https://github.com/leebyron/async-to-gen","bugs":{"url":"https://github.com/leebyron/async-to-gen/issues"},"repository":{"type":"git","url":"git+ssh://git@github.com/leebyron/async-to-gen.git"},"scripts":{"test":"DIFF=$(./async-to-gen test/source.js | diff test/expected.js -); if [ -n \"$DIFF\" ]; then echo \"$DIFF\"; exit 1; fi; RES=$(node -e 'require(\"./register\");require(\"./test/test-node-module.js\")'); if [ \"$RES\" != 42 ]; then echo 'Node register hook failed'; exit 1; fi; ASYNC_NODE=$(./async-node ./test/test-node-module.js); if [ \"$ASYNC_NODE\" != 42 ]; then echo 'async-node failed'; exit 1; fi; ASYNC_GEN_NODE=$(./async-node ./test/test-async-generator.js); if [ \"$ASYNC_GEN_NODE\" != 42 ]; then echo 'async-node failed for async generators'; exit 1; fi; ./async-to-gen test/memtest.js | node --max-old-space-size=10;","test-update":"./async-to-gen test/source.js > test/expected.js"},"files":["index.js","register.js","async-to-gen","async-node"],"keywords":["async","await","async-await","generators","compiler","transpiler","transform","es7"],"dependencies":{"babylon":"^6.11.4","magic-string":"^0.16.0"},"gitHead":"3de34bcb35024087497fb63af64398a4ab673435","_id":"async-to-gen@1.1.4","_shasum":"0baa2a75d5b22b411054d5c85e4a0c06fcf9768d","_from":".","_npmVersion":"3.10.3","_nodeVersion":"6.6.0","_npmUser":{"name":"leebyron","email":"lee@leebyron.com"},"dist":{"shasum":"0baa2a75d5b22b411054d5c85e4a0c06fcf9768d","size":11809,"noattachment":false,"key":"/async-to-gen/-/async-to-gen-1.1.4.tgz","tarball":"http://registry.cnpm.dingdandao.com/async-to-gen/download/async-to-gen-1.1.4.tgz"},"maintainers":[{"name":"leebyron","email":"lee@leebyron.com"}],"_npmOperationalInternal":{"host":"packages-16-east.internal.npmjs.com","tmp":"tmp/async-to-gen-1.1.4.tgz_1475833014605_0.8643042338080704"},"directories":{},"publish_time":1475833018267,"_cnpm_publish_time":1475833018267,"_hasShrinkwrap":false},"1.1.3":{"name":"async-to-gen","version":"1.1.3","description":"Transform async functions to generator functions with speed and simplicity.","author":{"name":"Lee Byron","email":"lee@leebyron.com","url":"http://leebyron.com/"},"license":"BSD-3-Clause","main":"index.js","bin":{"async-to-gen":"./async-to-gen","async-node":"./async-node"},"homepage":"https://github.com/leebyron/async-to-gen","bugs":{"url":"https://github.com/leebyron/async-to-gen/issues"},"repository":{"type":"git","url":"git+ssh://git@github.com/leebyron/async-to-gen.git"},"scripts":{"test":"DIFF=$(./async-to-gen test/source.js | diff test/expected.js -); if [ -n \"$DIFF\" ]; then echo \"$DIFF\"; exit 1; fi; RES=$(node -e 'require(\"./register\");require(\"./test/test-node-module.js\")'); if [ \"$RES\" != 42 ]; then echo 'Node register hook failed'; exit 1; fi; ASYNC_NODE=$(./async-node ./test/test-node-module.js); if [ \"$ASYNC_NODE\" != 42 ]; then echo 'async-node failed'; exit 1; fi; ASYNC_GEN_NODE=$(./async-node ./test/test-async-generator.js); if [ \"$ASYNC_GEN_NODE\" != 42 ]; then echo 'async-node failed for async generators'; exit 1; fi;","test-update":"./async-to-gen test/source.js > test/expected.js"},"files":["index.js","register.js","async-to-gen","async-node"],"keywords":["async","await","async-await","generators","compiler","transpiler","transform","es7"],"dependencies":{"babylon":"^6.8.4","magic-string":"^0.15.2"},"gitHead":"d88362a702f5a4e1d1c6510c832e47d4dceb9c10","_id":"async-to-gen@1.1.3","_shasum":"337fbfe6d5b6f8b161189dddcb5ec9f647adc5c0","_from":".","_npmVersion":"3.10.3","_nodeVersion":"6.3.1","_npmUser":{"name":"leebyron","email":"lee@leebyron.com"},"dist":{"shasum":"337fbfe6d5b6f8b161189dddcb5ec9f647adc5c0","size":11707,"noattachment":false,"key":"/async-to-gen/-/async-to-gen-1.1.3.tgz","tarball":"http://registry.cnpm.dingdandao.com/async-to-gen/download/async-to-gen-1.1.3.tgz"},"maintainers":[{"name":"leebyron","email":"lee@leebyron.com"}],"_npmOperationalInternal":{"host":"packages-16-east.internal.npmjs.com","tmp":"tmp/async-to-gen-1.1.3.tgz_1474039049847_0.6498491326346993"},"directories":{},"publish_time":1474039051456,"_cnpm_publish_time":1474039051456,"_hasShrinkwrap":false},"1.1.2":{"name":"async-to-gen","version":"1.1.2","description":"Transform async functions to generator functions with speed and simplicity.","author":{"name":"Lee Byron","email":"lee@leebyron.com","url":"http://leebyron.com/"},"license":"BSD-3-Clause","main":"index.js","bin":{"async-to-gen":"./async-to-gen","async-node":"./async-node"},"homepage":"https://github.com/leebyron/async-to-gen","bugs":{"url":"https://github.com/leebyron/async-to-gen/issues"},"repository":{"type":"git","url":"git+ssh://git@github.com/leebyron/async-to-gen.git"},"scripts":{"test":"DIFF=$(./async-to-gen test/source.js | diff test/expected.js -); if [ -n \"$DIFF\" ]; then echo \"$DIFF\"; exit 1; fi; RES=$(node -e 'require(\"./register\");require(\"./test/test-node-module.js\")'); if [ \"$RES\" != 42 ]; then echo 'Node register hook failed'; exit 1; fi; ASYNC_NODE=$(./async-node ./test/test-node-module.js); if [ \"$ASYNC_NODE\" != 42 ]; then echo 'async-node failed'; exit 1; fi; ASYNC_GEN_NODE=$(./async-node ./test/test-async-generator.js); if [ \"$ASYNC_GEN_NODE\" != 42 ]; then echo 'async-node failed for async generators'; exit 1; fi;","test-update":"./async-to-gen test/source.js > test/expected.js"},"keywords":["async","await","async-await","generators","compiler","transpiler","transform","es7"],"dependencies":{"babylon":"^6.8.4","magic-string":"^0.15.2"},"gitHead":"85044b0f999ffdea8be23096335525b8feec522a","_id":"async-to-gen@1.1.2","_shasum":"ed5c95301096870fa6f1b5752f47ca94c569ebfd","_from":".","_npmVersion":"3.10.3","_nodeVersion":"6.3.1","_npmUser":{"name":"leebyron","email":"lee@leebyron.com"},"dist":{"shasum":"ed5c95301096870fa6f1b5752f47ca94c569ebfd","size":14715,"noattachment":false,"key":"/async-to-gen/-/async-to-gen-1.1.2.tgz","tarball":"http://registry.cnpm.dingdandao.com/async-to-gen/download/async-to-gen-1.1.2.tgz"},"maintainers":[{"name":"leebyron","email":"lee@leebyron.com"}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/async-to-gen-1.1.2.tgz_1474038730335_0.48398851114325225"},"directories":{},"publish_time":1474038732038,"_cnpm_publish_time":1474038732038,"_hasShrinkwrap":false},"1.1.1":{"name":"async-to-gen","version":"1.1.1","description":"Transform async functions to generator functions with speed and simplicity.","author":{"name":"Lee Byron","email":"lee@leebyron.com","url":"http://leebyron.com/"},"license":"BSD-3-Clause","main":"index.js","bin":{"async-to-gen":"./async-to-gen","async-node":"./async-node"},"homepage":"https://github.com/leebyron/async-to-gen","bugs":{"url":"https://github.com/leebyron/async-to-gen/issues"},"repository":{"type":"git","url":"git+ssh://git@github.com/leebyron/async-to-gen.git"},"scripts":{"test":"DIFF=$(./async-to-gen test/source.js | diff test/expected.js -); if [ -n \"$DIFF\" ]; then echo \"$DIFF\"; exit 1; fi; RES=$(node -e 'require(\"./register\");require(\"./test/test-node-module.js\")'); if [ \"$RES\" != 42 ]; then echo 'Node register hook failed'; exit 1; fi; ASYNC_NODE=$(./async-node ./test/test-node-module.js); if [ \"$ASYNC_NODE\" != 42 ]; then echo 'async-node failed'; exit 1; fi; ASYNC_GEN_NODE=$(./async-node ./test/test-async-generator.js); if [ \"$ASYNC_GEN_NODE\" != 42 ]; then echo 'async-node failed for async generators'; exit 1; fi;","test-update":"./async-to-gen test/source.js > test/expected.js"},"keywords":["async","await","async-await","generators","compiler","transpiler","transform","es7"],"dependencies":{"babylon":"^6.8.4","magic-string":"^0.15.2"},"gitHead":"a440a96d3297eb8b37428854cc3825e583b8bac7","_id":"async-to-gen@1.1.1","_shasum":"7b86fc077b415d532a201b746a76b599aeecd781","_from":".","_npmVersion":"3.10.3","_nodeVersion":"6.3.1","_npmUser":{"name":"leebyron","email":"lee@leebyron.com"},"dist":{"shasum":"7b86fc077b415d532a201b746a76b599aeecd781","size":14727,"noattachment":false,"key":"/async-to-gen/-/async-to-gen-1.1.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/async-to-gen/download/async-to-gen-1.1.1.tgz"},"maintainers":[{"name":"leebyron","email":"lee@leebyron.com"}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/async-to-gen-1.1.1.tgz_1473905676712_0.7314301186706871"},"directories":{},"publish_time":1473905678390,"_cnpm_publish_time":1473905678390,"_hasShrinkwrap":false},"1.1.0":{"name":"async-to-gen","version":"1.1.0","description":"Transform async functions to generator functions with speed and simplicity.","author":{"name":"Lee Byron","email":"lee@leebyron.com","url":"http://leebyron.com/"},"license":"BSD-3-Clause","main":"index.js","bin":{"async-to-gen":"./async-to-gen","async-node":"./async-node"},"homepage":"https://github.com/leebyron/async-to-gen","bugs":{"url":"https://github.com/leebyron/async-to-gen/issues"},"repository":{"type":"git","url":"git+ssh://git@github.com/leebyron/async-to-gen.git"},"scripts":{"test":"DIFF=$(./async-to-gen test/source.js | diff test/expected.js -); if [ -n \"$DIFF\" ]; then echo \"$DIFF\"; exit 1; fi; RES=$(node -e 'require(\"./register\");require(\"./test/test-node-module.js\")'); if [ \"$RES\" != 42 ]; then echo 'Node register hook failed'; exit 1; fi; ASYNC_NODE=$(./async-node ./test/test-node-module.js); if [ \"$ASYNC_NODE\" != 42 ]; then echo 'async-node failed'; exit 1; fi; ASYNC_GEN_NODE=$(./async-node ./test/test-async-generator.js); if [ \"$ASYNC_GEN_NODE\" != 42 ]; then echo 'async-node failed for async generators'; exit 1; fi;","test-update":"./async-to-gen test/source.js > test/expected.js"},"keywords":["async","await","async-await","generators","compiler","transpiler","transform","es7"],"dependencies":{"babylon":"^6.8.4","magic-string":"^0.15.2"},"gitHead":"984a41b2c3fc51339d6334405db4d5480751159a","_id":"async-to-gen@1.1.0","_shasum":"3950385725919ed447dad412b89dcd3f3d6993b9","_from":".","_npmVersion":"3.10.3","_nodeVersion":"6.3.1","_npmUser":{"name":"leebyron","email":"lee@leebyron.com"},"dist":{"shasum":"3950385725919ed447dad412b89dcd3f3d6993b9","size":14446,"noattachment":false,"key":"/async-to-gen/-/async-to-gen-1.1.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/async-to-gen/download/async-to-gen-1.1.0.tgz"},"maintainers":[{"name":"leebyron","email":"lee@leebyron.com"}],"_npmOperationalInternal":{"host":"packages-16-east.internal.npmjs.com","tmp":"tmp/async-to-gen-1.1.0.tgz_1473435537897_0.14339544251561165"},"directories":{},"publish_time":1473435539476,"_cnpm_publish_time":1473435539476,"_hasShrinkwrap":false},"1.0.6":{"name":"async-to-gen","version":"1.0.6","description":"Transform async functions to generator functions with speed and simplicity.","author":{"name":"Lee Byron","email":"lee@leebyron.com","url":"http://leebyron.com/"},"license":"BSD-3-Clause","main":"index.js","bin":{"async-to-gen":"./async-to-gen","async-node":"./async-node"},"homepage":"https://github.com/leebyron/async-to-gen","bugs":{"url":"https://github.com/leebyron/async-to-gen/issues"},"repository":{"type":"git","url":"git+ssh://git@github.com/leebyron/async-to-gen.git"},"scripts":{"test":"DIFF=$(./async-to-gen test/source.js | diff test/expected.js -); if [ -n \"$DIFF\" ]; then echo \"$DIFF\"; exit 1; fi; RES=$(node -e 'require(\"./register\");require(\"./test/test-node-module.js\")'); if [ \"$RES\" != 42 ]; then echo 'Node register hook failed'; exit 1; fi; ASYNC_NODE=$(./async-node ./test/test-node-module.js); if [ \"$ASYNC_NODE\" != 42 ]; then echo 'async-node failed'; exit 1; fi;","test-update":"./async-to-gen test/source.js > test/expected.js"},"keywords":["async","await","async-await","generators","compiler","transpiler","transform","es7"],"dependencies":{"babylon":"^6.8.4","magic-string":"^0.15.2"},"gitHead":"75812429ae8c78b97997b87a39d9a4cf925ef20f","_id":"async-to-gen@1.0.6","_shasum":"ef946c10f2021e48b87d40de46982370adc16223","_from":".","_npmVersion":"3.10.3","_nodeVersion":"6.3.1","_npmUser":{"name":"leebyron","email":"lee@leebyron.com"},"dist":{"shasum":"ef946c10f2021e48b87d40de46982370adc16223","size":12183,"noattachment":false,"key":"/async-to-gen/-/async-to-gen-1.0.6.tgz","tarball":"http://registry.cnpm.dingdandao.com/async-to-gen/download/async-to-gen-1.0.6.tgz"},"maintainers":[{"name":"leebyron","email":"lee@leebyron.com"}],"_npmOperationalInternal":{"host":"packages-16-east.internal.npmjs.com","tmp":"tmp/async-to-gen-1.0.6.tgz_1473268982266_0.8219206780195236"},"directories":{},"publish_time":1473268983473,"_cnpm_publish_time":1473268983473,"_hasShrinkwrap":false},"1.0.5":{"name":"async-to-gen","version":"1.0.5","description":"Transform async functions to generator functions with speed and simplicity.","author":{"name":"Lee Byron","email":"lee@leebyron.com","url":"http://leebyron.com/"},"license":"BSD-3-Clause","main":"index.js","bin":{"async-to-gen":"./async-to-gen","async-node":"./async-node"},"homepage":"https://github.com/leebyron/async-to-gen","bugs":{"url":"https://github.com/leebyron/async-to-gen/issues"},"repository":{"type":"git","url":"git+ssh://git@github.com/leebyron/async-to-gen.git"},"scripts":{"test":"DIFF=$(./async-to-gen test/source.js | diff test/expected.js -); if [ -n \"$DIFF\" ]; then echo \"$DIFF\"; exit 1; fi; RES=$(node -e 'require(\"./register\");require(\"./test/test-node-module.js\")'); if [ \"$RES\" != 42 ]; then echo 'Node register hook failed'; exit 1; fi; ASYNC_NODE=$(./async-node ./test/test-node-module.js); if [ \"$ASYNC_NODE\" != 42 ]; then echo 'async-node failed'; exit 1; fi;","test-update":"./async-to-gen test/source.js > test/expected.js"},"keywords":["async","await","async-await","generators","compiler","transpiler","transform","es7"],"dependencies":{"babylon":"^6.8.4","magic-string":"^0.15.2"},"gitHead":"9f212386afd041cbffb1b371b8ffe022fa6da082","_id":"async-to-gen@1.0.5","_shasum":"d5c45366acdfc9d0df6da4d2463c4974a4d2dc9e","_from":".","_npmVersion":"3.10.3","_nodeVersion":"6.3.1","_npmUser":{"name":"leebyron","email":"lee@leebyron.com"},"dist":{"shasum":"d5c45366acdfc9d0df6da4d2463c4974a4d2dc9e","size":11677,"noattachment":false,"key":"/async-to-gen/-/async-to-gen-1.0.5.tgz","tarball":"http://registry.cnpm.dingdandao.com/async-to-gen/download/async-to-gen-1.0.5.tgz"},"maintainers":[{"name":"leebyron","email":"lee@leebyron.com"}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/async-to-gen-1.0.5.tgz_1471122491334_0.6418482977896929"},"directories":{},"publish_time":1471122491573,"_cnpm_publish_time":1471122491573,"_hasShrinkwrap":false},"1.0.4":{"name":"async-to-gen","version":"1.0.4","description":"Transform async functions to generator functions with speed and simplicity.","author":{"name":"Lee Byron","email":"lee@leebyron.com","url":"http://leebyron.com/"},"license":"BSD-3-Clause","main":"index.js","bin":{"async-to-gen":"./async-to-gen","async-node":"./async-node"},"homepage":"https://github.com/leebyron/async-to-gen","bugs":{"url":"https://github.com/leebyron/async-to-gen/issues"},"repository":{"type":"git","url":"git+ssh://git@github.com/leebyron/async-to-gen.git"},"scripts":{"test":"DIFF=$(./async-to-gen test/source.js | diff test/expected.js -); if [ -n \"$DIFF\" ]; then echo \"$DIFF\"; exit 1; fi; RES=$(node -e 'require(\"./register\");require(\"./test/test-node-module.js\")'); if [ \"$RES\" != 42 ]; then echo 'Node register hook failed'; exit 1; fi; ASYNC_NODE=$(./async-node ./test/test-node-module.js); if [ \"$ASYNC_NODE\" != 42 ]; then echo 'async-node failed'; exit 1; fi;","test-update":"./async-to-gen test/source.js > test/expected.js"},"keywords":["async","await","async-await","generators","compiler","transpiler","transform","es7"],"dependencies":{"babylon":"^6.8.4","magic-string":"^0.15.2"},"gitHead":"1ea255e74c0f5f5bf82120bfc6b0a6fb2f616029","_id":"async-to-gen@1.0.4","_shasum":"2dde1f9d6c8ce9bbcc3df0734394e1d423394e05","_from":".","_npmVersion":"3.10.3","_nodeVersion":"6.3.1","_npmUser":{"name":"leebyron","email":"lee@leebyron.com"},"dist":{"shasum":"2dde1f9d6c8ce9bbcc3df0734394e1d423394e05","size":11674,"noattachment":false,"key":"/async-to-gen/-/async-to-gen-1.0.4.tgz","tarball":"http://registry.cnpm.dingdandao.com/async-to-gen/download/async-to-gen-1.0.4.tgz"},"maintainers":[{"name":"leebyron","email":"lee@leebyron.com"}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/async-to-gen-1.0.4.tgz_1471121447258_0.11472532735206187"},"directories":{},"publish_time":1471121447504,"_cnpm_publish_time":1471121447504,"_hasShrinkwrap":false},"1.0.3":{"name":"async-to-gen","version":"1.0.3","description":"Transform async functions to generator functions with speed and simplicity.","author":{"name":"Lee Byron","email":"lee@leebyron.com","url":"http://leebyron.com/"},"license":"BSD-3-Clause","main":"index.js","bin":{"async-to-gen":"./async-to-gen","async-node":"./async-node"},"homepage":"https://github.com/leebyron/async-to-gen","bugs":{"url":"https://github.com/leebyron/async-to-gen/issues"},"repository":{"type":"git","url":"git+ssh://git@github.com/leebyron/async-to-gen.git"},"scripts":{"test":"DIFF=$(./async-to-gen test/source.js | diff test/expected.js -); if [ -n \"$DIFF\" ]; then echo \"$DIFF\"; exit 1; fi; RES=$(node -e 'require(\"./register\");require(\"./test/test-node-module.js\")'); if [ \"$RES\" != 42 ]; then echo 'Node register hook failed'; exit 1; fi; ASYNC_NODE=$(./async-node ./test/test-node-module.js); if [ \"$ASYNC_NODE\" != 42 ]; then echo 'async-node failed'; exit 1; fi;","test-update":"./async-to-gen test/source.js > test/expected.js"},"keywords":["async","await","async-await","generators","compiler","transpiler","transform","es7"],"dependencies":{"babylon":"^6.8.4","magic-string":"^0.15.2"},"gitHead":"29b79daeed328877c8d8f029450bdce421a6e513","_id":"async-to-gen@1.0.3","_shasum":"b78382ee5660c65fa5615e2c854904ddda1bc3d6","_from":".","_npmVersion":"3.7.3","_nodeVersion":"5.9.1","_npmUser":{"name":"leebyron","email":"lee@leebyron.com"},"dist":{"shasum":"b78382ee5660c65fa5615e2c854904ddda1bc3d6","size":11194,"noattachment":false,"key":"/async-to-gen/-/async-to-gen-1.0.3.tgz","tarball":"http://registry.cnpm.dingdandao.com/async-to-gen/download/async-to-gen-1.0.3.tgz"},"maintainers":[{"name":"leebyron","email":"lee@leebyron.com"}],"_npmOperationalInternal":{"host":"packages-16-east.internal.npmjs.com","tmp":"tmp/async-to-gen-1.0.3.tgz_1471110852744_0.3071412204299122"},"directories":{},"publish_time":1471110855457,"_cnpm_publish_time":1471110855457,"_hasShrinkwrap":false},"1.0.2":{"name":"async-to-gen","version":"1.0.2","description":"Transform async functions to generator functions with speed and simplicity.","author":{"name":"Lee Byron","email":"lee@leebyron.com","url":"http://leebyron.com/"},"license":"BSD-3-Clause","main":"index.js","bin":{"async-to-gen":"./async-to-gen","async-node":"./async-node"},"homepage":"https://github.com/leebyron/async-to-gen","bugs":{"url":"https://github.com/leebyron/async-to-gen/issues"},"repository":{"type":"git","url":"git+ssh://git@github.com/leebyron/async-to-gen.git"},"scripts":{"test":"DIFF=$(./async-to-gen test/source.js | diff test/expected.js -); if [ -n \"$DIFF\" ]; then echo \"$DIFF\"; exit 1; fi; RES=$(node -e 'require(\"./register\");require(\"./test/test-node-module.js\")'); if [ \"$RES\" != 42 ]; then echo 'Node register hook failed'; exit 1; fi; ASYNC_NODE=$(./async-node ./test/test-node-module.js); if [ \"$ASYNC_NODE\" != 42 ]; then echo 'async-node failed'; exit 1; fi;","test-update":"./async-to-gen test/source.js > test/expected.js"},"keywords":["async","await","async-await","generators","compiler","transpiler","transform","es7"],"dependencies":{"babylon":"^6.8.4","magic-string":"^0.15.2"},"gitHead":"9870e7a3dd84a3e56b0551e37ba8087ef2730d07","_id":"async-to-gen@1.0.2","_shasum":"2a76357b2f47d1d6f5dcb8be31142a978dd2c4b5","_from":".","_npmVersion":"3.7.3","_nodeVersion":"5.9.1","_npmUser":{"name":"leebyron","email":"lee@leebyron.com"},"dist":{"shasum":"2a76357b2f47d1d6f5dcb8be31142a978dd2c4b5","size":10414,"noattachment":false,"key":"/async-to-gen/-/async-to-gen-1.0.2.tgz","tarball":"http://registry.cnpm.dingdandao.com/async-to-gen/download/async-to-gen-1.0.2.tgz"},"maintainers":[{"name":"leebyron","email":"lee@leebyron.com"}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/async-to-gen-1.0.2.tgz_1471048987755_0.954185200156644"},"directories":{},"publish_time":1471048987996,"_cnpm_publish_time":1471048987996,"_hasShrinkwrap":false},"1.0.1":{"name":"async-to-gen","version":"1.0.1","description":"Transform async functions to generator functions with speed and simplicity.","author":{"name":"Lee Byron","email":"lee@leebyron.com","url":"http://leebyron.com/"},"license":"BSD-3-Clause","main":"index.js","bin":{"async-to-gen":"./async-to-gen","async-node":"./async-node"},"homepage":"https://github.com/leebyron/async-to-gen","bugs":{"url":"https://github.com/leebyron/async-to-gen/issues"},"repository":{"type":"git","url":"git+ssh://git@github.com/leebyron/async-to-gen.git"},"scripts":{"test":"DIFF=$(./async-to-gen test/source.js | diff test/expected.js -); if [ -n \"$DIFF\" ]; then echo \"$DIFF\"; exit 1; fi; RES=$(node -e 'require(\"./register\");require(\"./test/test-node-module.js\")'); if [ \"$RES\" != 42 ]; then echo 'Node register hook failed'; exit 1; fi; ASYNC_NODE=$(./async-node ./test/test-node-module.js); if [ \"$ASYNC_NODE\" != 42 ]; then echo 'async-node failed'; exit 1; fi;","test-update":"./async-to-gen test/source.js > test/expected.js"},"keywords":["async","await","async-await","generators","compiler","transpiler","transform","es7"],"dependencies":{"babylon":"^6.8.4","magic-string":"^0.15.2"},"gitHead":"87747d1565e4a3756a387412a36dc691900b041d","_id":"async-to-gen@1.0.1","_shasum":"7716e0ac3c7600431b9cc63f5f7c7fc410252be9","_from":".","_npmVersion":"3.7.3","_nodeVersion":"5.9.1","_npmUser":{"name":"leebyron","email":"lee@leebyron.com"},"dist":{"shasum":"7716e0ac3c7600431b9cc63f5f7c7fc410252be9","size":9142,"noattachment":false,"key":"/async-to-gen/-/async-to-gen-1.0.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/async-to-gen/download/async-to-gen-1.0.1.tgz"},"maintainers":[{"name":"leebyron","email":"lee@leebyron.com"}],"_npmOperationalInternal":{"host":"packages-16-east.internal.npmjs.com","tmp":"tmp/async-to-gen-1.0.1.tgz_1470951452556_0.7454177041072398"},"directories":{},"publish_time":1470951454657,"_cnpm_publish_time":1470951454657,"_hasShrinkwrap":false},"1.0.0":{"name":"async-to-gen","version":"1.0.0","description":"Transform async functions to generator functions with speed and simplicity.","author":{"name":"Lee Byron","email":"lee@leebyron.com","url":"http://leebyron.com/"},"license":"BSD-3-Clause","main":"index.js","bin":{"async-to-gen":"./async-to-gen","async-node":"./async-node"},"homepage":"https://github.com/leebyron/async-to-gen","bugs":{"url":"https://github.com/leebyron/async-to-gen/issues"},"repository":{"type":"git","url":"git+ssh://git@github.com/leebyron/async-to-gen.git"},"scripts":{"test":"DIFF=$(./async-to-gen test/source.js | diff test/expected.js -); if [ -n \"$DIFF\" ]; then echo \"$DIFF\"; exit 1; fi; RES=$(node -e 'require(\"./register\");require(\"./test/test-node-module.js\")'); if [ \"$RES\" != 42 ]; then echo 'Node register hook failed'; exit 1; fi; ASYNC_NODE=$(./async-node ./test/test-node-module.js); if [ \"$ASYNC_NODE\" != 42 ]; then echo 'async-node failed'; exit 1; fi;","test-update":"./async-to-gen test/source.js > test/expected.js"},"keywords":["async","await","async-await","generators","compiler","transpiler","transform","es7"],"dependencies":{"babylon":"^6.8.4","magic-string":"^0.15.2"},"gitHead":"665a99561ea887412141d1cb872a3e83fc67483e","_id":"async-to-gen@1.0.0","_shasum":"d38a657032faa231e3cec17f5b158c4c34a0c821","_from":".","_npmVersion":"3.10.3","_nodeVersion":"6.3.1","_npmUser":{"name":"leebyron","email":"lee@leebyron.com"},"dist":{"shasum":"d38a657032faa231e3cec17f5b158c4c34a0c821","size":8299,"noattachment":false,"key":"/async-to-gen/-/async-to-gen-1.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/async-to-gen/download/async-to-gen-1.0.0.tgz"},"maintainers":[{"name":"leebyron","email":"lee@leebyron.com"}],"_npmOperationalInternal":{"host":"packages-16-east.internal.npmjs.com","tmp":"tmp/async-to-gen-1.0.0.tgz_1470883015545_0.45946511533111334"},"directories":{},"publish_time":1470883017306,"_cnpm_publish_time":1470883017306,"_hasShrinkwrap":false}},"readme":"async-to-gen\n============\n\n[![npm](https://img.shields.io/npm/v/async-to-gen.svg?maxAge=86400)](https://www.npmjs.com/package/async-to-gen)\n[![Build Status](https://img.shields.io/travis/leebyron/async-to-gen.svg?style=flat&label=travis&branch=master)](https://travis-ci.org/leebyron/async-to-gen)\n\nTurn your JavaScript with [async functions](https://github.com/tc39/ecmascript-asyncawait) into ES6 generators so they can be used in modern\nbrowsers or in node.js (v0.12 or newer).\n\nAsync functions are an exciting new proposed addition to JavaScript. The v8 team\nis [hard at work](https://bugs.chromium.org/p/v8/issues/detail?id=4483) getting it right, which means it could appear in future versions of node.js. However if\nyou're impatient like me, then you probably just can't wait to get rid of your\npromise triangles and [callback hell](http://callbackhell.com/).\n\nYou can use [Babel](https://babeljs.io/) to accomplish this, but `async-to-gen`\nis a faster, simpler, zero-configuration alternative with minimal dependencies\nfor super-fast `npm install` and transform time.\n\nAlso, `async-to-gen` provides support for [async generators](https://github.com/tc39/proposal-async-iteration)\nwhich return Async Iterators, a great syntax and primitive for producing and\noperating on streams of data.\n\n\n## Get Started!\n\nUse the command line:\n\n```sh\nnpm install --global async-to-gen\n```\n\n```sh\nasync-to-gen --help\nasync-to-gen input.js > output.js\n\n# source maps!\nasync-to-gen input.js --sourcemaps inline > output.js\n```\n\nOr the JavaScript API:\n\n```sh\nnpm install async-to-gen\n```\n\n```js\nvar asyncToGen = require('async-to-gen');\nvar fs = require('fs');\n\nvar input = fs.readFileSync('input.js', 'utf8');\nvar output = asyncToGen(input).toString();\nfs.writeFileSync('output.js', output);\n\n// source maps!\nvar map = asyncToGen(input).generateMap();\nfs.writeFileSync('output.js.map', JSON.stringify(output));\n```\n\n\n## Use `async-node`\n\nWherever you use `node` you can substitute `async-node` and have a super fast\nasync functions aware evaluator or REPL.\n\n```sh\n$ async-node\n> async function answer() {\n... return await 42\n... }\nundefined\n> promise = answer()\nPromise { <pending> }\n> promise.then(console.log)\nPromise { <pending> }\n42\n```\n\n\n## Use the require hook\n\nUsing the require hook allows you to automatically compile files on the fly when\nrequiring in node, useful during development:\n\n```js\nrequire('async-to-gen/register')\nrequire('./some-module-with-async-functions')\n```\n\nYou can also provide options to the require hook:\n\n```js\n// Disable inline source maps for use with development tools.\nrequire('async-to-gen/register')({ sourceMaps: false })\n```\n\nUse options to define exactly which files to `includes` or `excludes` with regular\nexpressions. All files are included by default except those found in the\n`node_modules` folder, which is excluded by default. Pass `excludes: null` to not\nexclude any files.\n\n```js\nrequire('async-to-gen/register')({ includes: /\\/custom_path\\// })\n```\n\nThe require hook also offers the ability to set options and revert the require\nhook:\n\n```js\nconst asyncHook = require('async-to-gen/register')\n// Similar to example above.\nasyncHook.setOptions({ includes: /\\/custom_path\\// })\n// Reverts the require hook.\nasyncHook.revert()\n```\n\n> #### Don't use the require hook in packages distributed on NPM\n> As always, don't forget to use `async-to-gen` to compile files before distributing\n> your code on npm, as using the require hook affects the whole runtime and not\n> just your module and may hurt the runtime performance of code that includes it.\n\n\n## Use in Build Systems:\n\n**Rollup**: [`rollup-plugin-async`](https://github.com/leebyron/rollup-plugin-async)\n\n\n## Common Usage\n\n#### Async I/O\n\nAsync functions are great for writing asynchronous code that *looks* synchronous,\nand that's perfect for writing code that needs to perform async I/O operations.\n\nOne of the original motivations for Node.js was [non-blocking I/O](https://www.youtube.com/watch?v=ztspvPYybIY), perfect! However its core libraries\n[do not yet support Promises](https://github.com/nodejs/node/pull/5020), nor do many popular libraries written for Node ????.\n\nDo not fret, we can fix this with [promisify-node](https://github.com/nodegit/promisify-node)!\n\n```js\nconst promisify = require('promisify-node');\nconst fs = promisify('fs');\n\nasync function emojify(filePath) {\n  const contents = await fs.readFile(filePath, 'utf8')\n  const edited = contents.replace(/:\\)/g, '????')\n  await fs.writeFile(filePath, edited, 'utf8')\n}\n```\n\n#### Mocha\n\nWriting tests in mocha? Async functions are super handy for testing any code\nusing promises and already work out of the box! To enable async functions in\nmocha include the require hook when you run your tests:\n\n```bash\nmocha --require async-to-gen/register test.js\n```\n\nThen in your tests, use async functions in your `it` clauses:\n\n```js\ndescribe('My Promising Module', () => {\n\n  it('promises to give a value', async () => {\n    expect(await myFunction('input')).to.equal('output')\n  })\n\n})\n```\n\nTesting your [express](http://expressjs.com/) app?\nTry [supertest](https://github.com/visionmedia/supertest/) and async functions:\n\n```js\nconst express = require('express')\nconst request = require('supertest')\n\nconst app = express()\napp.get('/foo', (req, res) => res.send('bar'))\n\ndescribe('My express app', () => {\n\n  it('loads foo', async () => {\n    const response = await request(app).get('/foo')\n    expect(response.body).to.equal('bar')\n  })\n\n})\n```\n\n#### Jest\n\nWriting tests in Jest? Use the [scriptPreprocessor](http://facebook.github.io/jest/docs/api.html#scriptpreprocessor-string) entry in your jest configuration in package.json:\n\n```js\n{\n  \"name\": \"my-project\",\n  \"jest\": {\n    \"transform\": {\n      \"^.+\\\\.js$\": \"async-to-gen\"\n    }\n  },\n  \"devDependencies\": {\n    \"async-to-gen\": \"*\"\n  }\n}\n```\n\n#### Scripts\n\nHave interactive scripts that require lots of input from the user? Async\nfunctions make writing those much easier! Check out [interactive-script](https://github.com/leebyron/interactive-script).\n\n```bash\nnpm install interactive-script\n```\n\nThen write your script:\n\n```js\nconst interactive = require('interactive-script')\ninteractive(async (say, ask) => {\n  say('What is your favorite number?')\n  let num;\n  do {\n    num = Math.ceil(Math.random() * 100)\n  } while (!await ask(`Is it ${num}? `, 'yN'))\n  say(`Great, I think ${num} is a fine number.`)\n})\n```\n\nAnd run it with `async-node`:\n\n```bash\nasync-node myScript.js\n```\n\n#### Streams\n\nStreaming data can be a challenging thing to get right. While [Observables](http://reactivex.io/documentation/observable.html) have provided a great library for\nstreamed data, Async Generators provides language-level support for this concept!\n\nConsider subscribing to a web socket within an program using async functions:\n\n```js\nasync function* stockTickerInEuro(symbol) {\n  var socket = await openWebSocket('ws://stocks.com/' + symbol)\n  try {\n    for await (var usd of socket) {\n      var euro = usd * await loadExchangeRateUSD2EUR()\n      yield euro\n    }\n  } finally {\n    closeWebSocket(socket)\n  }\n}\n```\n\nThen calling this function produces an Async Iterator (an Iterator of Promises)\nof stock ticker values.\n\n```js\nvar ticker = stockTickerInEuro('AAPL')\nticker.next().then(step => console.log(step.value))\n```\n\nOr use `for-await-of` loops within another async function:\n\n```js\nasync function bloombergTerminal() {\n  for await (var price of stockTickerInEuro('AAPL')) {\n    console.log(price)\n  }\n}\n```\n\n## Dead-Simple Transforms\n\nWhen `async-to-gen` transforms async functions, it makes as few edits as\npossible, and does not affect the location of lines in a file, leading to easier\nto understand stack traces when debugging.\n\nIt also includes a very small conversion function at the bottom of the file.\nHow small? 204 chars for async functions and 533 chars for async generators.\n\n**Before:**\n\n```js\nasync function foo() {\n  return await x\n}\n```\n\n**After:**\n\n```js\nfunction foo() {return __async(function*(){\n  return yield x\n}())}\n\nfunction __async(g){/* small helper function */}\n```\n\n\n## Using with Babel\n\nDon't bother using both! If you're already using Babel (maybe you need JSX,\nother proposed features, or are supporting older versions of Node) then you\nmight be excited to hear that using [babel-preset-es2017](https://babeljs.io/docs/plugins/preset-es2017/)\nin your `.babelrc` will provide support for async functions!\n\nBabel is an amazing tool that you should consider using, however `async-to-gen`\nintentionally makes some different choices to provide a different set of\ntrade-offs. Babel is general-purpose and supports a wider set of features but\nrequires some configuration and more dependencies and those features may cost\nbuild performance or output code quality. `async-to-gen` can only do one thing,\nbut that simplicity lends itself towards faster builds and cleaner output.\n\nUltimately, if you only need to add async function support you should try\n`async-to-gen` but if you need more features then you should use Babel.\n","_attachments":{},"homepage":"https://github.com/leebyron/async-to-gen","bugs":{"url":"https://github.com/leebyron/async-to-gen/issues"},"license":"BSD-3-Clause"}