{"_id":"degenerator","_rev":"186519","name":"degenerator","description":"Compiles sync functions into async generator functions","dist-tags":{"latest":"3.0.2"},"maintainers":[{"name":"tootallnate","email":""}],"time":{"modified":"2022-10-18T11:31:03.000Z","created":"2013-12-06T23:48:00.079Z","3.0.2":"2022-02-17T06:13:18.427Z","3.0.1":"2021-07-12T21:28:10.425Z","3.0.0":"2021-07-12T21:09:33.915Z","2.2.0":"2020-02-05T02:37:22.678Z","2.1.4":"2019-10-18T22:36:34.208Z","2.1.3":"2019-10-18T22:16:38.138Z","2.1.2":"2019-10-18T21:55:55.316Z","2.1.1":"2019-10-18T20:46:10.178Z","2.1.0":"2019-10-18T20:39:13.030Z","2.0.0":"2019-10-18T19:40:10.334Z","1.0.4":"2016-11-09T23:12:59.139Z","1.0.3":"2016-06-22T19:22:30.208Z","1.0.2":"2015-06-22T18:59:42.095Z","1.0.1":"2015-03-11T17:37:30.770Z","1.0.0":"2014-11-22T20:20:45.205Z","0.0.4":"2014-11-22T20:08:08.308Z","0.0.3":"2014-04-04T18:51:53.071Z","0.0.2":"2013-12-07T01:23:24.837Z","0.0.1":"2013-12-06T23:48:00.079Z"},"users":{},"author":{"name":"Nathan Rajlich","email":"nathan@tootallnate.net","url":"http://n8.io/"},"repository":{"type":"git","url":"git://github.com/TooTallNate/node-degenerator.git"},"versions":{"3.0.2":{"name":"degenerator","version":"3.0.2","description":"Compiles sync functions into async generator functions","main":"dist/src/index","typings":"dist/src/index","scripts":{"prebuild":"rimraf dist","build":"tsc","postbuild":"cpy --parents src test '!**/*.ts' dist","test":"mocha --reporter spec dist/test/test.js","test-lint":"eslint src --ext .js,.ts","prepublishOnly":"npm run build"},"author":{"name":"Nathan Rajlich","email":"nathan@tootallnate.net","url":"http://n8.io/"},"repository":{"type":"git","url":"git://github.com/TooTallNate/node-degenerator.git"},"engines":{"node":">= 6"},"license":"MIT","dependencies":{"ast-types":"^0.13.2","escodegen":"^1.8.1","esprima":"^4.0.0","vm2":"^3.9.8"},"devDependencies":{"@types/escodegen":"^0.0.6","@types/esprima":"^4.0.2","@types/mocha":"^5.2.7","@types/node":"^12.12.17","@typescript-eslint/eslint-plugin":"1.6.0","@typescript-eslint/parser":"1.1.0","cpy-cli":"^2.0.0","eslint":"5.16.0","eslint-config-airbnb":"17.1.0","eslint-config-prettier":"4.1.0","eslint-import-resolver-typescript":"1.1.1","eslint-plugin-import":"2.16.0","eslint-plugin-jsx-a11y":"6.2.1","eslint-plugin-react":"7.12.4","mocha":"^6.2.0","rimraf":"^3.0.0","typescript":"^3.7.3"},"gitHead":"3b609557e46aca742bb2fcfc5ad8254cd599d633","bugs":{"url":"https://github.com/TooTallNate/node-degenerator/issues"},"homepage":"https://github.com/TooTallNate/node-degenerator#readme","_id":"degenerator@3.0.2","_nodeVersion":"14.18.3","_npmVersion":"8.3.1","dist":{"shasum":"6a61fcc42a702d6e50ff6023fe17bff435f68235","size":6328,"noattachment":false,"key":"/degenerator/-/degenerator-3.0.2.tgz","tarball":"http://name.csiicloud.com:7001/degenerator/download/degenerator-3.0.2.tgz"},"_npmUser":{"name":"tootallnate","email":"nathan@tootallnate.net"},"directories":{},"maintainers":[{"name":"tootallnate","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/degenerator_3.0.2_1645078398280_0.5969816266342847"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2022-02-17T06:13:24.943Z","publish_time":1645078398427,"_cnpm_publish_time":1645078398427},"3.0.1":{"name":"degenerator","version":"3.0.1","description":"Compiles sync functions into async generator functions","main":"dist/src/index","typings":"dist/src/index","scripts":{"prebuild":"rimraf dist","build":"tsc","postbuild":"cpy --parents src test '!**/*.ts' dist","test":"mocha --reporter spec dist/test/test.js","test-lint":"eslint src --ext .js,.ts","prepublishOnly":"npm run build"},"author":{"name":"Nathan Rajlich","email":"nathan@tootallnate.net","url":"http://n8.io/"},"repository":{"type":"git","url":"git://github.com/TooTallNate/node-degenerator.git"},"engines":{"node":">= 6"},"license":"MIT","dependencies":{"ast-types":"^0.13.2","escodegen":"^1.8.1","esprima":"^4.0.0","vm2":"^3.9.3"},"devDependencies":{"@types/escodegen":"^0.0.6","@types/esprima":"^4.0.2","@types/mocha":"^5.2.7","@types/node":"^12.12.17","@typescript-eslint/eslint-plugin":"1.6.0","@typescript-eslint/parser":"1.1.0","cpy-cli":"^2.0.0","eslint":"5.16.0","eslint-config-airbnb":"17.1.0","eslint-config-prettier":"4.1.0","eslint-import-resolver-typescript":"1.1.1","eslint-plugin-import":"2.16.0","eslint-plugin-jsx-a11y":"6.2.1","eslint-plugin-react":"7.12.4","mocha":"^6.2.0","rimraf":"^3.0.0","typescript":"^3.7.3"},"gitHead":"5cf4ab2eeacfa593e95ae84e4cc433592156088f","bugs":{"url":"https://github.com/TooTallNate/node-degenerator/issues"},"homepage":"https://github.com/TooTallNate/node-degenerator#readme","_id":"degenerator@3.0.1","_nodeVersion":"14.17.3","_npmVersion":"7.19.1","dist":{"shasum":"7ef78ec0c8577a544477308ddf1d2d6e88d51f5b","size":6329,"noattachment":false,"key":"/degenerator/-/degenerator-3.0.1.tgz","tarball":"http://name.csiicloud.com:7001/degenerator/download/degenerator-3.0.1.tgz"},"_npmUser":{"name":"tootallnate","email":"nathan@tootallnate.net"},"directories":{},"maintainers":[{"name":"tootallnate","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/degenerator_3.0.1_1626125290302_0.0752194345757784"},"_hasShrinkwrap":false,"publish_time":1626125290425,"_cnpm_publish_time":1626125290425,"_cnpmcore_publish_time":"2021-12-14T06:42:14.130Z"},"3.0.0":{"name":"degenerator","version":"3.0.0","description":"Compiles sync functions into async generator functions","main":"dist/src/index","typings":"dist/src/index","scripts":{"prebuild":"rimraf dist","build":"tsc","postbuild":"cpy --parents src test '!**/*.ts' dist","test":"mocha --reporter spec dist/test/test.js","test-lint":"eslint src --ext .js,.ts","prepublishOnly":"npm run build"},"author":{"name":"Nathan Rajlich","email":"nathan@tootallnate.net","url":"http://n8.io/"},"repository":{"type":"git","url":"git://github.com/TooTallNate/node-degenerator.git"},"engines":{"node":">= 6"},"license":"MIT","dependencies":{"ast-types":"^0.13.2","escodegen":"^1.8.1","esprima":"^4.0.0","vm2":"^3.9.3"},"devDependencies":{"@types/escodegen":"^0.0.6","@types/esprima":"^4.0.2","@types/mocha":"^5.2.7","@types/node":"^12.12.17","@typescript-eslint/eslint-plugin":"1.6.0","@typescript-eslint/parser":"1.1.0","cpy-cli":"^2.0.0","eslint":"5.16.0","eslint-config-airbnb":"17.1.0","eslint-config-prettier":"4.1.0","eslint-import-resolver-typescript":"1.1.1","eslint-plugin-import":"2.16.0","eslint-plugin-jsx-a11y":"6.2.1","eslint-plugin-react":"7.12.4","mocha":"^6.2.0","rimraf":"^3.0.0","typescript":"^3.7.3"},"gitHead":"dc10ee9daa270157c19a16f7168fc42210f3355c","bugs":{"url":"https://github.com/TooTallNate/node-degenerator/issues"},"homepage":"https://github.com/TooTallNate/node-degenerator#readme","_id":"degenerator@3.0.0","_nodeVersion":"14.17.3","_npmVersion":"7.19.1","dist":{"shasum":"cdfe064913d58a1e1fea9af4defb2dad228aec13","size":6242,"noattachment":false,"key":"/degenerator/-/degenerator-3.0.0.tgz","tarball":"http://name.csiicloud.com:7001/degenerator/download/degenerator-3.0.0.tgz"},"_npmUser":{"name":"tootallnate","email":"nathan@tootallnate.net"},"directories":{},"maintainers":[{"name":"tootallnate","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/degenerator_3.0.0_1626124173782_0.020457839495354735"},"_hasShrinkwrap":false,"publish_time":1626124173915,"_cnpm_publish_time":1626124173915,"_cnpmcore_publish_time":"2021-12-14T06:42:14.367Z"},"2.2.0":{"name":"degenerator","version":"2.2.0","description":"Compiles sync functions into async generator functions","main":"dist/src/index","typings":"dist/src/index","scripts":{"prebuild":"rimraf dist","build":"tsc","postbuild":"cpy --parents src test '!**/*.ts' dist","test":"mocha --reporter spec dist/test/test.js","test-lint":"eslint src --ext .js,.ts","prepublishOnly":"npm run build"},"author":{"name":"Nathan Rajlich","email":"nathan@tootallnate.net","url":"http://n8.io/"},"repository":{"type":"git","url":"git://github.com/TooTallNate/node-degenerator.git"},"engines":{"node":">= 6"},"license":"MIT","dependencies":{"ast-types":"^0.13.2","escodegen":"^1.8.1","esprima":"^4.0.0"},"devDependencies":{"@types/escodegen":"^0.0.6","@types/esprima":"^4.0.2","@types/mocha":"^5.2.7","@types/node":"^12.12.17","@typescript-eslint/eslint-plugin":"1.6.0","@typescript-eslint/parser":"1.1.0","cpy-cli":"^2.0.0","eslint":"5.16.0","eslint-config-airbnb":"17.1.0","eslint-config-prettier":"4.1.0","eslint-import-resolver-typescript":"1.1.1","eslint-plugin-import":"2.16.0","eslint-plugin-jsx-a11y":"6.2.1","eslint-plugin-react":"7.12.4","mocha":"^6.2.0","rimraf":"^3.0.0","typescript":"^3.7.3"},"gitHead":"b9bc71e7b333af036eb163dc63286e7a30d4d4d8","bugs":{"url":"https://github.com/TooTallNate/node-degenerator/issues"},"homepage":"https://github.com/TooTallNate/node-degenerator#readme","_id":"degenerator@2.2.0","_nodeVersion":"12.14.1","_npmVersion":"6.13.7","dist":{"shasum":"49e98c11fa0293c5b26edfbb52f15729afcdb254","size":8007,"noattachment":false,"key":"/degenerator/-/degenerator-2.2.0.tgz","tarball":"http://name.csiicloud.com:7001/degenerator/download/degenerator-2.2.0.tgz"},"maintainers":[{"name":"tootallnate","email":""}],"_npmUser":{"name":"tootallnate","email":"nathan@tootallnate.net"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/degenerator_2.2.0_1580870242582_0.2231024278387237"},"_hasShrinkwrap":false,"publish_time":1580870242678,"_cnpm_publish_time":1580870242678,"_cnpmcore_publish_time":"2021-12-14T06:42:14.573Z"},"2.1.4":{"name":"degenerator","version":"2.1.4","description":"Turns sync functions into async generator functions","main":"dist/src/index","typings":"dist/src/index","scripts":{"prebuild":"rimraf dist","build":"tsc","postbuild":"cpy --parents src test '!**/*.ts' dist","test":"mocha --reporter spec dist/test/test.js","test-lint":"eslint src --ext .js,.ts","prepublishOnly":"npm run build"},"author":{"name":"Nathan Rajlich","email":"nathan@tootallnate.net","url":"http://n8.io/"},"repository":{"type":"git","url":"git://github.com/TooTallNate/node-degenerator.git"},"engines":{"node":">= 6"},"license":"MIT","dependencies":{"ast-types":"^0.13.2","escodegen":"^1.8.1","esprima":"^4.0.0"},"devDependencies":{"@types/escodegen":"^0.0.6","@types/esprima":"^4.0.2","@types/mocha":"^5.2.7","@types/node":"^10.5.3","@typescript-eslint/eslint-plugin":"1.6.0","@typescript-eslint/parser":"1.1.0","cpy-cli":"^2.0.0","eslint":"5.16.0","eslint-config-airbnb":"17.1.0","eslint-config-prettier":"4.1.0","eslint-import-resolver-typescript":"1.1.1","eslint-plugin-import":"2.16.0","eslint-plugin-jsx-a11y":"6.2.1","eslint-plugin-react":"7.12.4","mocha":"^6.2.0","rimraf":"^3.0.0","typescript":"^3.5.3"},"gitHead":"d1baeb34b812cbca3babdd5b7e7b0fbef9271cc4","bugs":{"url":"https://github.com/TooTallNate/node-degenerator/issues"},"homepage":"https://github.com/TooTallNate/node-degenerator#readme","_id":"degenerator@2.1.4","_nodeVersion":"10.16.3","_npmVersion":"6.12.0","dist":{"shasum":"ea606ac1d34b8bbf4d51e252dc9d1cc56fe8f19a","size":7770,"noattachment":false,"key":"/degenerator/-/degenerator-2.1.4.tgz","tarball":"http://name.csiicloud.com:7001/degenerator/download/degenerator-2.1.4.tgz"},"maintainers":[{"name":"tootallnate","email":""}],"_npmUser":{"name":"tootallnate","email":"nathan@tootallnate.net"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/degenerator_2.1.4_1571438194062_0.2092483846957176"},"_hasShrinkwrap":false,"publish_time":1571438194208,"_cnpm_publish_time":1571438194208,"_cnpmcore_publish_time":"2021-12-14T06:42:14.814Z"},"2.1.3":{"name":"degenerator","version":"2.1.3","description":"Turns sync functions into async generator functions","main":"dist/src/index","typings":"dist/src/index","scripts":{"prebuild":"rimraf dist","build":"tsc","postbuild":"cpy --parents src test '!**/*.ts' dist","test":"mocha --reporter spec dist/test/test.js","test-lint":"eslint src --ext .js,.ts","prepublishOnly":"npm run build"},"author":{"name":"Nathan Rajlich","email":"nathan@tootallnate.net","url":"http://n8.io/"},"repository":{"type":"git","url":"git://github.com/TooTallNate/node-degenerator.git"},"engines":{"node":">= 6"},"license":"MIT","dependencies":{"ast-types":"^0.13.2","escodegen":"^1.8.1","esprima":"^4.0.0"},"devDependencies":{"@types/escodegen":"^0.0.6","@types/esprima":"^4.0.2","@types/mocha":"^5.2.7","@types/node":"^10.5.3","@typescript-eslint/eslint-plugin":"1.6.0","@typescript-eslint/parser":"1.1.0","cpy-cli":"^2.0.0","eslint":"5.16.0","eslint-config-airbnb":"17.1.0","eslint-config-prettier":"4.1.0","eslint-import-resolver-typescript":"1.1.1","eslint-plugin-import":"2.16.0","eslint-plugin-jsx-a11y":"6.2.1","eslint-plugin-react":"7.12.4","mocha":"^6.2.0","rimraf":"^3.0.0","typescript":"^3.5.3"},"gitHead":"ee8b244ebc67f6c623e70769f1e103f36412a5f0","bugs":{"url":"https://github.com/TooTallNate/node-degenerator/issues"},"homepage":"https://github.com/TooTallNate/node-degenerator#readme","_id":"degenerator@2.1.3","_nodeVersion":"10.16.3","_npmVersion":"6.12.0","dist":{"shasum":"8304771aeb54d66571b0fd16c27ee7caa8b66273","size":7751,"noattachment":false,"key":"/degenerator/-/degenerator-2.1.3.tgz","tarball":"http://name.csiicloud.com:7001/degenerator/download/degenerator-2.1.3.tgz"},"maintainers":[{"name":"tootallnate","email":""}],"_npmUser":{"name":"tootallnate","email":"nathan@tootallnate.net"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/degenerator_2.1.3_1571436998033_0.6567358667176852"},"_hasShrinkwrap":false,"publish_time":1571436998138,"_cnpm_publish_time":1571436998138,"_cnpmcore_publish_time":"2021-12-14T06:42:15.035Z"},"2.1.2":{"name":"degenerator","version":"2.1.2","description":"Turns sync functions into async generator functions","main":"dist/src/index","typings":"dist/src/index","scripts":{"prebuild":"rimraf dist","build":"tsc","postbuild":"cpy --parents src test '!**/*.ts' dist","test":"mocha --reporter spec dist/test/test.js","test-lint":"eslint src --ext .js,.ts","prepublishOnly":"npm run build"},"author":{"name":"Nathan Rajlich","email":"nathan@tootallnate.net","url":"http://n8.io/"},"repository":{"type":"git","url":"git://github.com/TooTallNate/node-degenerator.git"},"engines":{"node":">= 6"},"license":"MIT","dependencies":{"ast-types":"^0.13.2","escodegen":"^1.8.1","esprima":"^4.0.0"},"devDependencies":{"@types/escodegen":"^0.0.6","@types/esprima":"^4.0.2","@types/mocha":"^5.2.7","@types/node":"^10.5.3","@typescript-eslint/eslint-plugin":"1.6.0","@typescript-eslint/parser":"1.1.0","cpy-cli":"^2.0.0","eslint":"5.16.0","eslint-config-airbnb":"17.1.0","eslint-config-prettier":"4.1.0","eslint-import-resolver-typescript":"1.1.1","eslint-plugin-import":"2.16.0","eslint-plugin-jsx-a11y":"6.2.1","eslint-plugin-react":"7.12.4","mocha":"^6.2.0","rimraf":"^3.0.0","typescript":"^3.5.3"},"gitHead":"7a144af5d22076792588b173cf48f7fbf764d67e","bugs":{"url":"https://github.com/TooTallNate/node-degenerator/issues"},"homepage":"https://github.com/TooTallNate/node-degenerator#readme","_id":"degenerator@2.1.2","_nodeVersion":"10.16.3","_npmVersion":"6.12.0","dist":{"shasum":"e59a49cd2da04ee465d7ae95d83f3abeb5d993d6","size":7566,"noattachment":false,"key":"/degenerator/-/degenerator-2.1.2.tgz","tarball":"http://name.csiicloud.com:7001/degenerator/download/degenerator-2.1.2.tgz"},"maintainers":[{"name":"tootallnate","email":""}],"_npmUser":{"name":"tootallnate","email":"nathan@tootallnate.net"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/degenerator_2.1.2_1571435755065_0.6389992127501103"},"_hasShrinkwrap":false,"publish_time":1571435755316,"_cnpm_publish_time":1571435755316,"_cnpmcore_publish_time":"2021-12-14T06:42:15.229Z"},"2.1.1":{"name":"degenerator","version":"2.1.1","description":"Turns sync functions into async generator functions","main":"dist/src/index","typings":"dist/src/index","scripts":{"prebuild":"rimraf dist","build":"tsc","postbuild":"cpy --parents src test '!**/*.ts' dist","test":"mocha --reporter spec dist/test/test.js","test-lint":"eslint src --ext .js,.ts","prepublishOnly":"npm run build"},"author":{"name":"Nathan Rajlich","email":"nathan@tootallnate.net","url":"http://n8.io/"},"repository":{"type":"git","url":"git://github.com/TooTallNate/node-degenerator.git"},"engines":{"node":">= 6"},"license":"MIT","dependencies":{"ast-types":"^0.13.2","co":"^4.6.0","escodegen":"^1.8.1","esprima":"^4.0.0"},"devDependencies":{"@types/co":"^4.6.2","@types/escodegen":"^0.0.6","@types/esprima":"^4.0.2","@types/mocha":"^5.2.7","@types/node":"^10.5.3","@typescript-eslint/eslint-plugin":"1.6.0","@typescript-eslint/parser":"1.1.0","cpy-cli":"^2.0.0","eslint":"5.16.0","eslint-config-airbnb":"17.1.0","eslint-config-prettier":"4.1.0","eslint-import-resolver-typescript":"1.1.1","eslint-plugin-import":"2.16.0","eslint-plugin-jsx-a11y":"6.2.1","eslint-plugin-react":"7.12.4","mocha":"^6.2.0","rimraf":"^3.0.0","typescript":"^3.5.3"},"gitHead":"66eb9ad738b3199250b3149fa8b429a9c4964339","bugs":{"url":"https://github.com/TooTallNate/node-degenerator/issues"},"homepage":"https://github.com/TooTallNate/node-degenerator#readme","_id":"degenerator@2.1.1","_nodeVersion":"12.12.0","_npmVersion":"6.12.0","dist":{"shasum":"2c2971c7a8c5d3837ed0b490b7d3a14043210e8f","size":6634,"noattachment":false,"key":"/degenerator/-/degenerator-2.1.1.tgz","tarball":"http://name.csiicloud.com:7001/degenerator/download/degenerator-2.1.1.tgz"},"maintainers":[{"name":"tootallnate","email":""}],"_npmUser":{"name":"tootallnate","email":"nathan@tootallnate.net"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/degenerator_2.1.1_1571431570007_0.635486508349294"},"_hasShrinkwrap":false,"publish_time":1571431570178,"_cnpm_publish_time":1571431570178,"_cnpmcore_publish_time":"2021-12-14T06:42:15.441Z"},"2.1.0":{"name":"degenerator","version":"2.1.0","description":"Turns sync functions into async generator functions","main":"dist/src/index","typings":"dist/src/index","scripts":{"prebuild":"rimraf dist","build":"tsc","postbuild":"cpy --parents src test '!**/*.ts' dist","test":"mocha --reporter spec dist/test/test.js","test-lint":"eslint src --ext .js,.ts","prepublishOnly":"npm run build"},"author":{"name":"Nathan Rajlich","email":"nathan@tootallnate.net","url":"http://n8.io/"},"repository":{"type":"git","url":"git://github.com/TooTallNate/node-degenerator.git"},"engines":{"node":">= 6"},"license":"MIT","dependencies":{"ast-types":"^0.13.2","co":"^4.6.0","escodegen":"^1.8.1","esprima":"^4.0.0"},"devDependencies":{"@types/co":"^4.6.2","@types/escodegen":"^0.0.6","@types/esprima":"^4.0.2","@types/mocha":"^5.2.7","@types/node":"^10.5.3","@typescript-eslint/eslint-plugin":"1.6.0","@typescript-eslint/parser":"1.1.0","cpy-cli":"^2.0.0","eslint":"5.16.0","eslint-config-airbnb":"17.1.0","eslint-config-prettier":"4.1.0","eslint-import-resolver-typescript":"1.1.1","eslint-plugin-import":"2.16.0","eslint-plugin-jsx-a11y":"6.2.1","eslint-plugin-react":"7.12.4","mocha":"^6.2.0","rimraf":"^3.0.0","typescript":"^3.5.3"},"gitHead":"006fb0d31e280c5ed7ea68549acc8da0affd6afa","bugs":{"url":"https://github.com/TooTallNate/node-degenerator/issues"},"homepage":"https://github.com/TooTallNate/node-degenerator#readme","_id":"degenerator@2.1.0","_nodeVersion":"12.12.0","_npmVersion":"6.12.0","dist":{"shasum":"a8790a4e95fe5e39a3332f919abc2f72cae00152","size":6606,"noattachment":false,"key":"/degenerator/-/degenerator-2.1.0.tgz","tarball":"http://name.csiicloud.com:7001/degenerator/download/degenerator-2.1.0.tgz"},"maintainers":[{"name":"tootallnate","email":""}],"_npmUser":{"name":"tootallnate","email":"nathan@tootallnate.net"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/degenerator_2.1.0_1571431152816_0.05056714120417949"},"_hasShrinkwrap":false,"publish_time":1571431153030,"_cnpm_publish_time":1571431153030,"_cnpmcore_publish_time":"2021-12-14T06:42:15.741Z"},"2.0.0":{"name":"degenerator","version":"2.0.0","description":"Turns sync functions into async generator functions","main":"dist/src/index","typings":"dist/src/index","scripts":{"prebuild":"rimraf dist","build":"tsc","postbuild":"cpy --parents src test '!**/*.ts' dist","test":"mocha --reporter spec dist/test/test.js","test-lint":"eslint src --ext .js,.ts","prepublishOnly":"npm run build"},"author":{"name":"Nathan Rajlich","email":"nathan@tootallnate.net","url":"http://n8.io/"},"repository":{"type":"git","url":"git://github.com/TooTallNate/node-degenerator.git"},"engines":{"node":">= 6"},"license":"MIT","dependencies":{"ast-types":"^0.13.2","escodegen":"^1.8.1","esprima":"^4.0.0"},"devDependencies":{"@types/escodegen":"^0.0.6","@types/esprima":"^4.0.2","@types/mocha":"^5.2.7","@types/node":"^10.5.3","@typescript-eslint/eslint-plugin":"1.6.0","@typescript-eslint/parser":"1.1.0","cpy-cli":"^2.0.0","eslint":"5.16.0","eslint-config-airbnb":"17.1.0","eslint-config-prettier":"4.1.0","eslint-import-resolver-typescript":"1.1.1","eslint-plugin-import":"2.16.0","eslint-plugin-jsx-a11y":"6.2.1","eslint-plugin-react":"7.12.4","mocha":"^6.2.0","rimraf":"^3.0.0","typescript":"^3.5.3"},"gitHead":"64b704df3b439866e0bdef193a340adb18c38cb2","bugs":{"url":"https://github.com/TooTallNate/node-degenerator/issues"},"homepage":"https://github.com/TooTallNate/node-degenerator#readme","_id":"degenerator@2.0.0","_nodeVersion":"12.12.0","_npmVersion":"6.11.3","dist":{"shasum":"57589daf5b0418dc47af07ad15621001c2d80364","size":6377,"noattachment":false,"key":"/degenerator/-/degenerator-2.0.0.tgz","tarball":"http://name.csiicloud.com:7001/degenerator/download/degenerator-2.0.0.tgz"},"maintainers":[{"name":"tootallnate","email":""}],"_npmUser":{"name":"tootallnate","email":"nathan@tootallnate.net"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/degenerator_2.0.0_1571427610246_0.08505081840049522"},"_hasShrinkwrap":false,"publish_time":1571427610334,"_cnpm_publish_time":1571427610334,"_cnpmcore_publish_time":"2021-12-14T06:42:16.017Z"},"1.0.4":{"name":"degenerator","version":"1.0.4","description":"Turns sync functions into async generator functions","main":"index.js","scripts":{"test":"mocha --reporter spec test/test.js"},"author":{"name":"Nathan Rajlich","email":"nathan@tootallnate.net","url":"http://n8.io/"},"repository":{"type":"git","url":"git://github.com/TooTallNate/node-degenerator.git"},"license":"MIT","dependencies":{"esprima":"3.x.x","escodegen":"1.x.x","ast-types":"0.x.x"},"devDependencies":{"mocha":"3.x.x"},"gitHead":"78e389ba7f058d215786b45c5152edad8ab1d062","bugs":{"url":"https://github.com/TooTallNate/node-degenerator/issues"},"homepage":"https://github.com/TooTallNate/node-degenerator#readme","_id":"degenerator@1.0.4","_shasum":"fcf490a37ece266464d9cc431ab98c5819ced095","_from":".","_npmVersion":"3.10.9","_nodeVersion":"7.1.0","_npmUser":{"name":"tootallnate","email":"nathan@tootallnate.net"},"dist":{"shasum":"fcf490a37ece266464d9cc431ab98c5819ced095","size":6079,"noattachment":false,"key":"/degenerator/-/degenerator-1.0.4.tgz","tarball":"http://name.csiicloud.com:7001/degenerator/download/degenerator-1.0.4.tgz"},"maintainers":[{"name":"tootallnate","email":""}],"_npmOperationalInternal":{"host":"packages-18-east.internal.npmjs.com","tmp":"tmp/degenerator-1.0.4.tgz_1478733177407_0.3095490406267345"},"directories":{},"publish_time":1478733179139,"_hasShrinkwrap":false,"_cnpm_publish_time":1478733179139,"_cnpmcore_publish_time":"2021-12-14T06:42:16.200Z"},"1.0.3":{"name":"degenerator","version":"1.0.3","description":"Turns sync functions into async generator functions","main":"index.js","scripts":{"test":"mocha --reporter spec test/test.js"},"author":{"name":"Nathan Rajlich","email":"nathan@tootallnate.net","url":"http://n8.io/"},"repository":{"type":"git","url":"git://github.com/TooTallNate/node-degenerator.git"},"license":"MIT","dependencies":{"esprima":"2.x.x","escodegen":"1.x.x","ast-types":"0.x.x"},"devDependencies":{"mocha":"~2.0.1"},"gitHead":"a1ba17fd714909d40e1b412507b70f0be4fe5582","bugs":{"url":"https://github.com/TooTallNate/node-degenerator/issues"},"homepage":"https://github.com/TooTallNate/node-degenerator#readme","_id":"degenerator@1.0.3","_shasum":"deb4075472611a172fc15e4f90defab5f9ec7eff","_from":".","_npmVersion":"2.15.5","_nodeVersion":"4.4.5","_npmUser":{"name":"tootallnate","email":"nathan@tootallnate.net"},"dist":{"shasum":"deb4075472611a172fc15e4f90defab5f9ec7eff","size":5469,"noattachment":false,"key":"/degenerator/-/degenerator-1.0.3.tgz","tarball":"http://name.csiicloud.com:7001/degenerator/download/degenerator-1.0.3.tgz"},"maintainers":[{"name":"tootallnate","email":""}],"_npmOperationalInternal":{"host":"packages-16-east.internal.npmjs.com","tmp":"tmp/degenerator-1.0.3.tgz_1466623346800_0.5124161150306463"},"directories":{},"publish_time":1466623350208,"_hasShrinkwrap":false,"_cnpm_publish_time":1466623350208,"_cnpmcore_publish_time":"2021-12-14T06:42:16.404Z"},"1.0.2":{"name":"degenerator","version":"1.0.2","description":"Turns sync functions into async generator functions","main":"index.js","scripts":{"test":"mocha --reporter spec test/test.js"},"author":{"name":"Nathan Rajlich","email":"nathan@tootallnate.net","url":"http://n8.io/"},"repository":{"type":"git","url":"git://github.com/TooTallNate/node-degenerator.git"},"license":"MIT","dependencies":{"esprima":"~2.3.0","escodegen":"~1.3.1","ast-types":"~0.3.22"},"devDependencies":{"mocha":"~2.0.1"},"gitHead":"b0a2b77139b8073695c00a59aee47a022300ce1a","bugs":{"url":"https://github.com/TooTallNate/node-degenerator/issues"},"homepage":"https://github.com/TooTallNate/node-degenerator#readme","_id":"degenerator@1.0.2","_shasum":"c22222c8115cb22f3bfeee0a7b55843f1677caaa","_from":".","_npmVersion":"2.10.1","_nodeVersion":"0.12.4","_npmUser":{"name":"tootallnate","email":"nathan@tootallnate.net"},"maintainers":[{"name":"tootallnate","email":""}],"dist":{"shasum":"c22222c8115cb22f3bfeee0a7b55843f1677caaa","size":5205,"noattachment":false,"key":"/degenerator/-/degenerator-1.0.2.tgz","tarball":"http://name.csiicloud.com:7001/degenerator/download/degenerator-1.0.2.tgz"},"directories":{},"publish_time":1434999582095,"_hasShrinkwrap":false,"_cnpm_publish_time":1434999582095,"_cnpmcore_publish_time":"2021-12-14T06:42:16.591Z"},"1.0.1":{"name":"degenerator","version":"1.0.1","description":"Turns sync functions into async generator functions","main":"index.js","scripts":{"test":"mocha --reporter spec test/test.js"},"author":{"name":"Nathan Rajlich","email":"nathan@tootallnate.net","url":"http://n8.io/"},"repository":{"type":"git","url":"git://github.com/TooTallNate/node-degenerator.git"},"license":"MIT","dependencies":{"esprima":"git+https://github.com/ariya/esprima.git#harmony","escodegen":"~1.3.1","ast-types":"~0.3.22"},"devDependencies":{"mocha":"~2.0.1"},"gitHead":"a4d971ed76b5f256555e2f5cc06b7c6b672a3e0a","bugs":{"url":"https://github.com/TooTallNate/node-degenerator/issues"},"homepage":"https://github.com/TooTallNate/node-degenerator","_id":"degenerator@1.0.1","_shasum":"54a67ae57012ced53b0d51d8dcf7a5d3ee79cf62","_from":".","_npmVersion":"2.5.1","_nodeVersion":"0.12.0","_npmUser":{"name":"tootallnate","email":"nathan@tootallnate.net"},"maintainers":[{"name":"tootallnate","email":""}],"dist":{"shasum":"54a67ae57012ced53b0d51d8dcf7a5d3ee79cf62","size":5188,"noattachment":false,"key":"/degenerator/-/degenerator-1.0.1.tgz","tarball":"http://name.csiicloud.com:7001/degenerator/download/degenerator-1.0.1.tgz"},"directories":{},"publish_time":1426095450770,"_hasShrinkwrap":false,"_cnpm_publish_time":1426095450770,"_cnpmcore_publish_time":"2021-12-14T06:42:16.826Z"},"1.0.0":{"name":"degenerator","version":"1.0.0","description":"Turns sync functions into async generator functions","main":"index.js","scripts":{"test":"mocha --reporter spec test/test.js"},"author":{"name":"Nathan Rajlich","email":"nathan@tootallnate.net","url":"http://n8.io/"},"repository":{"type":"git","url":"git://github.com/TooTallNate/node-degenerator.git"},"license":"MIT","dependencies":{"esprima":"git://github.com/ariya/esprima.git#harmony","escodegen":"~1.3.1","ast-types":"~0.3.22"},"devDependencies":{"mocha":"~2.0.1"},"gitHead":"b2ab3c296119b96790bc779b2b9cd772dc8762ca","bugs":{"url":"https://github.com/TooTallNate/node-degenerator/issues"},"homepage":"https://github.com/TooTallNate/node-degenerator","_id":"degenerator@1.0.0","_shasum":"9cb6976fa1b860a9f2e913cbf18689113318dd8f","_from":".","_npmVersion":"2.1.2","_nodeVersion":"0.10.32","_npmUser":{"name":"tootallnate","email":"nathan@tootallnate.net"},"maintainers":[{"name":"tootallnate","email":""}],"dist":{"shasum":"9cb6976fa1b860a9f2e913cbf18689113318dd8f","size":5153,"noattachment":false,"key":"/degenerator/-/degenerator-1.0.0.tgz","tarball":"http://name.csiicloud.com:7001/degenerator/download/degenerator-1.0.0.tgz"},"directories":{},"publish_time":1416687645205,"_hasShrinkwrap":false,"_cnpm_publish_time":1416687645205,"_cnpmcore_publish_time":"2021-12-14T06:42:17.037Z"},"0.0.4":{"name":"degenerator","version":"0.0.4","description":"Turns sync functions into async generator functions","main":"index.js","scripts":{"test":"mocha --reporter spec test/test.js"},"author":{"name":"Nathan Rajlich","email":"nathan@tootallnate.net","url":"http://n8.io/"},"repository":{"type":"git","url":"git://github.com/TooTallNate/node-degenerator.git"},"license":"MIT","dependencies":{"esprima":"git://github.com/ariya/esprima.git#harmony","escodegen":"~1.3.1","ast-types":"~0.3.22"},"devDependencies":{"mocha":"~2.0.1"},"gitHead":"e1f2c7e5616d334ea27fa020780f2072766223fe","bugs":{"url":"https://github.com/TooTallNate/node-degenerator/issues"},"homepage":"https://github.com/TooTallNate/node-degenerator","_id":"degenerator@0.0.4","_shasum":"bcd911894990b610319debe90d11a662870a9ce8","_from":".","_npmVersion":"2.1.2","_nodeVersion":"0.10.32","_npmUser":{"name":"tootallnate","email":"nathan@tootallnate.net"},"maintainers":[{"name":"tootallnate","email":""}],"dist":{"shasum":"bcd911894990b610319debe90d11a662870a9ce8","size":5113,"noattachment":false,"key":"/degenerator/-/degenerator-0.0.4.tgz","tarball":"http://name.csiicloud.com:7001/degenerator/download/degenerator-0.0.4.tgz"},"directories":{},"publish_time":1416686888308,"_hasShrinkwrap":false,"_cnpm_publish_time":1416686888308,"_cnpmcore_publish_time":"2021-12-14T06:42:17.269Z"},"0.0.3":{"name":"degenerator","version":"0.0.3","description":"Turns sync functions into async generator functions","main":"index.js","scripts":{"test":"mocha --reporter spec test/test.js"},"author":{"name":"Nathan Rajlich","email":"nathan@tootallnate.net","url":"http://n8.io/"},"repository":{"type":"git","url":"git://github.com/TooTallNate/node-degenerator.git"},"license":"MIT","dependencies":{"esprima":"git://github.com/ariya/esprima.git#harmony","escodegen":"~1.3.1","ast-types":"~0.3.22"},"devDependencies":{"mocha":"~1.18.2"},"bugs":{"url":"https://github.com/TooTallNate/node-degenerator/issues"},"homepage":"https://github.com/TooTallNate/node-degenerator","_id":"degenerator@0.0.3","dist":{"shasum":"e815feb3e6a5380fc10767d083fcf521ace0017f","size":4024,"noattachment":false,"key":"/degenerator/-/degenerator-0.0.3.tgz","tarball":"http://name.csiicloud.com:7001/degenerator/download/degenerator-0.0.3.tgz"},"_from":".","_npmVersion":"1.4.3","_npmUser":{"name":"tootallnate","email":"nathan@tootallnate.net"},"maintainers":[{"name":"tootallnate","email":""}],"directories":{},"publish_time":1396637513071,"_hasShrinkwrap":false,"_cnpm_publish_time":1396637513071,"_cnpmcore_publish_time":"2021-12-14T06:42:17.538Z"},"0.0.2":{"name":"degenerator","version":"0.0.2","description":"Turns sync functions into async generator functions","main":"index.js","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"author":{"name":"Nathan Rajlich","email":"nathan@tootallnate.net","url":"http://n8.io/"},"license":"MIT","dependencies":{"esprima":"git://github.com/ariya/esprima.git#harmony","escodegen":"~1.0.0","ast-types":"~0.3.11"},"devDependencies":{"mocha":"~1.15.1","regenerator":"~0.3.1"},"readmeFilename":"README.md","_id":"degenerator@0.0.2","dist":{"shasum":"3b1d9b87163e55cbf5cd88f8866753cc5cdbaa41","size":3459,"noattachment":false,"key":"/degenerator/-/degenerator-0.0.2.tgz","tarball":"http://name.csiicloud.com:7001/degenerator/download/degenerator-0.0.2.tgz"},"_from":".","_npmVersion":"1.3.14","_npmUser":{"name":"tootallnate","email":"nathan@tootallnate.net"},"maintainers":[{"name":"tootallnate","email":""}],"directories":{},"publish_time":1386379404837,"_hasShrinkwrap":false,"_cnpm_publish_time":1386379404837,"_cnpmcore_publish_time":"2021-12-14T06:42:18.068Z"},"0.0.1":{"name":"degenerator","version":"0.0.1","description":"Turns sync functions into async generator functions","main":"index.js","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"author":{"name":"Nathan Rajlich","email":"nathan@tootallnate.net","url":"http://n8.io/"},"license":"MIT","dependencies":{"esprima":"git://github.com/ariya/esprima.git#harmony","escodegen":"~1.0.0","ast-types":"~0.3.11"},"readmeFilename":"README.md","_id":"degenerator@0.0.1","dist":{"shasum":"b31be1562d67d829a76f257386956e652208970e","size":2855,"noattachment":false,"key":"/degenerator/-/degenerator-0.0.1.tgz","tarball":"http://name.csiicloud.com:7001/degenerator/download/degenerator-0.0.1.tgz"},"_from":".","_npmVersion":"1.3.14","_npmUser":{"name":"tootallnate","email":"nathan@tootallnate.net"},"maintainers":[{"name":"tootallnate","email":""}],"directories":{},"publish_time":1386373680079,"_hasShrinkwrap":false,"_cnpm_publish_time":1386373680079,"_cnpmcore_publish_time":"2021-12-14T06:42:18.292Z"}},"readme":"degenerator\n===========\n### Compiles sync functions into async functions\n[![Build Status](https://github.com/TooTallNate/node-degenerator/workflows/Node%20CI/badge.svg)](https://github.com/TooTallNate/node-degenerator/actions?workflow=Node+CI)\n\nSometimes you need to write sync looking code that's really async under the hood.\nThis module takes a String to one or more synchronous JavaScript functions, and\nreturns a new String that with those JS functions transpiled into `async`\nfunctions.\n\nSo this:\n\n```js\nfunction foo() {\n  return a('bar') || b();\n}\n```\n\nGets compiled into:\n\n```js\nasync function foo() {\n    return await a('bar') || await b();\n}\n```\n\nWith the compiled output code, you can evaluate the code using the `vm` module\nin Node.js, or save the code to a file and require it, or whatever.\n\n\nInstallation\n------------\n\nInstall with `npm`:\n\n```bash\n$ npm install degenerator\n```\n\n\nExample\n-------\n\nYou must explicitly specify the names of the functions that should be\n\"asyncified\". So say we wanted to expose a `get(url)` function that did\nand HTTP request and returned the response body.\n\nThe user has provided us with this implementation:\n\n``` js\nfunction myFn() {\n  const one = get('https://google.com');\n  const two = get('http://nodejs.org');\n  const three = JSON.parse(get('http://jsonip.org'));\n  return [one, two, three];\n}\n```\n\nNow we can compile this into an asyncronous function, implement the\nasync `get()` function, and finally evaluate it into a real JavaScript function\ninstance with the `vm` module:\n\n\n```typescript\nimport vm from 'vm';\nimport degenerator from 'degenerator';\n\n// The `get()` function is Promise-based (error handling omitted for brevity)\nfunction get(endpoint: string) {\n  return new Promise((resolve, reject) => {\n    var mod = 0 == endpoint.indexOf('https:') ? require('https') : require('http');\n    var req = mod.get(endpoint);\n    req.on('response', function (res) {\n      var data = '';\n      res.setEncoding('utf8');\n      res.on('data', function (b) { data += b; });\n      res.on('end', function () {\n        resolve(data);\n      });\n    });\n  });\n}\n\n// Convert the JavaScript string provided from the user (assumed to be `str` var)\nstr = degenerator(str, [ 'get' ]);\n\n// Turn the JS String into a real async function instance\nconst asyncFn = vm.runInNewContext(`(${str})`, { get });\n\n// Now we can invoke the function asynchronously\nasyncFn().then((res) => {\n  // Do something with `res`...\n});\n```\n\n\nAPI\n---\n\n### degenerator(code: string, names: Array<string|RegExp>, options?: DegeneratorOptions): String\n\nReturns a \"degeneratorified\" JavaScript string, with `async`/`await` transplanted.\n\n#### DegeneratorOptions\n\nAn options object _may_ be passed in as the third parameter, with the following\nvalues:\n\n * `output` - string - May be `\"async\"` or `\"generator\"`, defaults to `\"async\"`.\n\n\nLicense\n-------\n\n(The MIT License)\n\nCopyright (c) 2013 Nathan Rajlich &lt;nathan@tootallnate.net&gt;\n\nPermission is hereby granted, free of charge, to any person obtaining\na copy of this software and associated documentation files (the\n'Software'), to deal in the Software without restriction, including\nwithout limitation the rights to use, copy, modify, merge, publish,\ndistribute, sublicense, and/or sell copies of the Software, and to\npermit persons to whom the Software is furnished to do so, subject to\nthe following conditions:\n\nThe above copyright notice and this permission notice shall be\nincluded in all copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND,\nEXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF\nMERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.\nIN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY\nCLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,\nTORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE\nSOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\n","_attachments":{},"homepage":"https://github.com/TooTallNate/node-degenerator#readme","bugs":{"url":"https://github.com/TooTallNate/node-degenerator/issues"},"license":"MIT"}