{"_id":"es6-promisify","_rev":"10649","name":"es6-promisify","description":"Converts callback-based functions to ES6 Promises","dist-tags":{"latest":"7.0.0"},"maintainers":[{"name":"mikehall314","email":"mikehall314@gmail.com"}],"time":{"modified":"2021-06-03T09:57:51.000Z","created":"2014-04-15T15:53:01.037Z","7.0.0":"2021-05-26T14:01:11.416Z","6.1.1":"2020-05-04T15:57:30.076Z","6.1.0":"2020-03-16T15:48:18.846Z","6.0.2":"2019-08-27T10:31:58.471Z","6.0.1":"2018-10-20T19:16:45.959Z","6.0.0":"2018-01-30T17:24:35.779Z","5.0.0":"2016-09-28T11:38:31.006Z","4.1.0":"2016-05-19T10:47:46.118Z","4.0.0":"2016-04-01T15:50:52.435Z","3.0.0":"2015-08-17T17:11:20.270Z","2.0.0":"2015-06-15T08:45:34.859Z","1.1.1":"2014-09-16T22:19:38.518Z","1.1.0":"2014-09-08T11:48:25.513Z","1.0.2":"2014-07-30T20:06:35.036Z","1.0.1":"2014-06-24T12:13:16.403Z","1.0.0":"2014-05-14T17:10:14.285Z","0.1.0":"2014-04-15T15:53:01.037Z"},"users":{"standy":true,"sylchamber":true,"tobiasnickel":true,"nickeltobias":true,"shanemileham":true,"joebentley":true,"wilsonsilva":true,"chrisco":true,"tiendq":true,"zhiquan_yu":true,"jlagunas":true,"spences10":true,"n3gu":true,"panlw":true,"tedyhy":true,"kaashin":true,"larrychen":true,"drazisil":true,"addelete":true,"bartoindahouse":true,"morehao":true,"leaves":true,"ezeikel":true,"zhangaz1":true,"kiknag":true,"daizch":true},"author":{"name":"Mike Hall","email":"mikehall314@gmail.com"},"repository":{"type":"git","url":"git+https://github.com/mikehall314/es6-promisify.git"},"versions":{"7.0.0":{"name":"es6-promisify","version":"7.0.0","description":"Converts callback-based functions to ES6 Promises","main":"./dist/promisify.js","module":"./dist/promisify.mjs","exports":{"import":"./dist/promisify.mjs","require":"./dist/promisify.js"},"author":{"name":"Mike Hall","email":"mikehall314@gmail.com"},"keywords":["promise","promises","es6","promisify","es6-promisify"],"license":"MIT","engines":{"node":">=6"},"scripts":{"prettier":"prettier --write lib","lint":"eslint lib test","pretest":"npm run build","build:es":"babel lib/promisify.js -o dist/promisify.mjs --config-file ./babel.config-module.js","build:cjs":"babel lib/promisify.js -o dist/promisify.js --config-file ./babel.config-nomodule.js","build":"npm run build:es && npm run build:cjs","test":"tape test","test:coverage":"nyc npm test"},"bugs":{"url":"http://github.com/mikehall314/es6-promisify/issues"},"repository":{"type":"git","url":"git+https://github.com/mikehall314/es6-promisify.git"},"devDependencies":{"@babel/cli":"^7.14.3","@babel/core":"^7.14.3","@babel/preset-env":"^7.14.2","babel-preset-minify":"^0.5.1","es6-promise":"^4.2.8","eslint":"^7.27.0","eslint-config-prettier":"^8.3.0","eslint-config-standard":"^16.0.3","eslint-plugin-import":"^2.23.3","eslint-plugin-node":"^11.1.0","eslint-plugin-promise":"^5.1.0","husky":"^6.0.0","nyc":"^15.1.0","prettier":"^2.3.0","sinon":"^10.0.0","tape":"^5.2.2"},"gitHead":"0212402c8756c020cddc3fcf331e6c1e288d0eb0","homepage":"https://github.com/mikehall314/es6-promisify#readme","_id":"es6-promisify@7.0.0","_nodeVersion":"14.8.0","_npmVersion":"6.14.13","_npmUser":{"name":"mikehall314","email":"mikehall314@gmail.com"},"dist":{"shasum":"9a710008dd6a4ab75a89e280bad787bfb749927b","size":2729,"noattachment":false,"key":"/es6-promisify/-/es6-promisify-7.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/es6-promisify/download/es6-promisify-7.0.0.tgz"},"directories":{},"maintainers":[{"name":"mikehall314","email":"mikehall314@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/es6-promisify_7.0.0_1622037671297_0.19491181336747543"},"_hasShrinkwrap":false,"publish_time":1622037671416,"_cnpm_publish_time":1622037671416},"6.1.1":{"name":"es6-promisify","version":"6.1.1","description":"Converts callback-based functions to ES6 Promises","main":"dist/promisify.js","author":{"name":"Mike Hall","email":"mikehall314@gmail.com"},"keywords":["promises","es6","promisify"],"license":"MIT","scripts":{"prettier":"prettier --write 'lib/**/*.{js,yml}'","lint":"eslint 'lib/*.js' 'test/*.js'","pretest":"npm run lint && npm run build","build":"babel lib -d dist","test":"tape test","test:coverage":"nyc npm test"},"bugs":{"url":"http://github.com/digitaldesignlabs/es6-promisify/issues"},"repository":{"type":"git","url":"git+https://github.com/digitaldesignlabs/es6-promisify.git"},"devDependencies":{"@babel/cli":"^7.8.4","@babel/core":"^7.8.7","@babel/preset-env":"^7.8.7","@puntt/eslint-config":"0.0.4","es6-promise":"^4.2.8","eslint":"5.16.0","nyc":"^15.0.0","prettier":"^2.0.5","sinon":"^9.0.1","tape":"^4.13.2"},"gitHead":"ff2a34342ddaf129e38834a0f44f692e8b468869","homepage":"https://github.com/digitaldesignlabs/es6-promisify#readme","_id":"es6-promisify@6.1.1","_nodeVersion":"10.16.0","_npmVersion":"6.14.4","_npmUser":{"name":"mikehall314","email":"mikehall314@gmail.com"},"dist":{"shasum":"46837651b7b06bf6fff893d03f29393668d01621","size":3272,"noattachment":false,"key":"/es6-promisify/-/es6-promisify-6.1.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/es6-promisify/download/es6-promisify-6.1.1.tgz"},"maintainers":[{"name":"mikehall314","email":"mikehall314@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/es6-promisify_6.1.1_1588607849982_0.9479966827152104"},"_hasShrinkwrap":false,"publish_time":1588607850076,"_cnpm_publish_time":1588607850076},"6.1.0":{"name":"es6-promisify","version":"6.1.0","description":"Converts callback-based functions to ES6 Promises","main":"dist/promisify.js","author":{"name":"Mike Hall","email":"mikehall314@gmail.com"},"keywords":["promises","es6","promisify"],"license":"MIT","dependencies":{},"scripts":{"pretest":"eslint 'lib/*.js' 'test/*.js'","build":"babel lib -d dist","real-test":"tape test","test":"npm run build && npm run real-test","test:cover":"npm run build && nyc tape test"},"bugs":{"url":"http://github.com/digitaldesignlabs/es6-promisify/issues"},"repository":{"type":"git","url":"git+https://github.com/digitaldesignlabs/es6-promisify.git"},"devDependencies":{"@babel/cli":"^7.8.4","@babel/core":"^7.8.7","@babel/preset-env":"^7.8.7","@puntt/eslint-config":"0.0.2","es6-promise":"^4.2.8","eslint":"^6.8.0","nyc":"^15.0.0","prettier":"^1.19.1","sinon":"^9.0.1","tape":"^4.13.2"},"gitHead":"cae7798ec510107327ca02720752ed5dded6b667","homepage":"https://github.com/digitaldesignlabs/es6-promisify#readme","_id":"es6-promisify@6.1.0","_nodeVersion":"10.16.0","_npmVersion":"6.14.2","_npmUser":{"name":"mikehall314","email":"mikehall314@gmail.com"},"dist":{"shasum":"32e3e7e796f924a6723f09ded24e71100ea57472","size":3274,"noattachment":false,"key":"/es6-promisify/-/es6-promisify-6.1.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/es6-promisify/download/es6-promisify-6.1.0.tgz"},"maintainers":[{"name":"mikehall314","email":"mikehall314@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/es6-promisify_6.1.0_1584373698692_0.19513198791497333"},"_hasShrinkwrap":false,"publish_time":1584373698846,"_cnpm_publish_time":1584373698846},"6.0.2":{"name":"es6-promisify","version":"6.0.2","description":"Converts callback-based functions to ES6 Promises","main":"dist/promisify.js","author":{"name":"Mike Hall","email":"mikehall314@gmail.com"},"keywords":["promises","es6","promisify"],"license":"MIT","dependencies":{},"scripts":{"pretest":"eslint 'lib/*.js' 'test/*.js'","build":"babel lib -d dist","real-test":"tape test","test":"npm run build && npm run real-test","test:cover":"npm run build && ./node_modules/.bin/nyc --reporter=lcov --all npm run real-test"},"bugs":{"url":"http://github.com/digitaldesignlabs/es6-promisify/issues"},"repository":{"type":"git","url":"git+https://github.com/digitaldesignlabs/es6-promisify.git"},"devDependencies":{"@babel/cli":"^7.5.5","@babel/core":"^7.5.5","@babel/preset-env":"^7.5.5","es6-promise":"^4.2.8","eslint":"^5.16.0","nyc":"^14.1.1","sinon":"^7.4.1","tape":"^4.11.0"},"gitHead":"4879a17781e83d00b31a1c59893d42f1867a4330","homepage":"https://github.com/digitaldesignlabs/es6-promisify#readme","_id":"es6-promisify@6.0.2","_shasum":"525c23725b8510f5f1f2feb5a1fbad93a93e29b4","_from":".","_npmVersion":"3.10.10","_nodeVersion":"6.17.1","_npmUser":{"name":"mikehall314","email":"mikehall314@gmail.com"},"dist":{"shasum":"525c23725b8510f5f1f2feb5a1fbad93a93e29b4","size":3286,"noattachment":false,"key":"/es6-promisify/-/es6-promisify-6.0.2.tgz","tarball":"http://registry.cnpm.dingdandao.com/es6-promisify/download/es6-promisify-6.0.2.tgz"},"maintainers":[{"name":"mikehall314","email":"mikehall314@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/es6-promisify_6.0.2_1566901918323_0.556455126395851"},"_hasShrinkwrap":false,"publish_time":1566901918471,"_cnpm_publish_time":1566901918471},"6.0.1":{"name":"es6-promisify","version":"6.0.1","description":"Converts callback-based functions to ES6 Promises","main":"dist/promisify.js","author":{"name":"Mike Hall","email":"mikehall314@gmail.com"},"keywords":["promises","es6","promisify"],"license":"MIT","dependencies":{},"scripts":{"pretest":"eslint lib/*.js test/*.js","build":"babel lib -d dist","test":"npm run build && ./node_modules/.bin/tape test","test:cover":"npm run build && ./node_modules/.bin/istanbul cover test"},"bugs":{"url":"http://github.com/digitaldesignlabs/es6-promisify/issues"},"repository":{"type":"git","url":"git+https://github.com/digitaldesignlabs/es6-promisify.git"},"devDependencies":{"babel-cli":"^6.26.0","babel-preset-es2015":"^6.24.1","es6-promise":"^4.2.5","eslint":"^5.7.0","istanbul":"^0.4.5","sinon":"^7.0.0","tape":"^4.9.1"},"greenkeeper":{"ignore":["eslint"]},"gitHead":"7fc27d787d3b4ab58111ffbf874356eb411a0790","homepage":"https://github.com/digitaldesignlabs/es6-promisify#readme","_id":"es6-promisify@6.0.1","_npmVersion":"6.4.1","_nodeVersion":"9.5.0","_npmUser":{"name":"mikehall314","email":"mikehall314@gmail.com"},"dist":{"shasum":"6edaa45f3bd570ffe08febce66f7116be4b1cdb6","size":3281,"noattachment":false,"key":"/es6-promisify/-/es6-promisify-6.0.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/es6-promisify/download/es6-promisify-6.0.1.tgz"},"maintainers":[{"name":"mikehall314","email":"mikehall314@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/es6-promisify_6.0.1_1540063005805_0.18934171193287908"},"_hasShrinkwrap":false,"publish_time":1540063005959,"_cnpm_publish_time":1540063005959},"6.0.0":{"name":"es6-promisify","version":"6.0.0","description":"Converts callback-based functions to ES6 Promises","main":"dist/promisify.js","author":{"name":"Mike Hall","email":"mikehall314@gmail.com"},"keywords":["promises","es6","promisify"],"license":"MIT","dependencies":{},"scripts":{"pretest":"eslint lib/*.js test/*.js","build":"babel lib -d dist","test":"npm run build && ./node_modules/.bin/tape test","test:cover":"npm run build && ./node_modules/.bin/istanbul cover test"},"bugs":{"url":"http://github.com/digitaldesignlabs/es6-promisify/issues"},"files":["dist/promisify.js"],"repository":{"type":"git","url":"git+https://github.com/digitaldesignlabs/es6-promisify.git"},"devDependencies":{"babel-cli":"^6.26.0","babel-preset-es2015":"^6.24.1","es6-promise":"^4.1.1","eslint":"^4.9.0","istanbul":"^0.4.5","sinon":"^4.0.1","tape":"^4.8.0"},"greenkeeper":{"ignore":["eslint"]},"gitHead":"0de94e02cc502364e57e3797828a1381ecba2119","homepage":"https://github.com/digitaldesignlabs/es6-promisify#readme","_id":"es6-promisify@6.0.0","_npmVersion":"5.6.0","_nodeVersion":"9.3.0","_npmUser":{"name":"mikehall314","email":"mikehall314@gmail.com"},"maintainers":[{"name":"mikehall314","email":"mikehall314@gmail.com"}],"dist":{"shasum":"b526a75eaa5ca600e960bf3d5ad98c40d75c7203","size":3298,"noattachment":false,"key":"/es6-promisify/-/es6-promisify-6.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/es6-promisify/download/es6-promisify-6.0.0.tgz"},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/es6-promisify-6.0.0.tgz_1517333074872_0.9159889470320195"},"directories":{},"publish_time":1517333075779,"_hasShrinkwrap":false,"_cnpm_publish_time":1517333075779},"5.0.0":{"name":"es6-promisify","version":"5.0.0","description":"Converts callback-based functions to ES6 Promises","main":"dist/promisify.js","author":{"name":"Mike Hall","email":"mikehall314@gmail.com"},"keywords":["promises","es6","promisify"],"license":"MIT","dependencies":{"es6-promise":"^4.0.3"},"scripts":{"pretest":"./node_modules/eslint/bin/eslint.js ./lib/*.js ./tests/*.js","test":"gulp && nodeunit tests"},"bugs":{"url":"http://github.com/digitaldesignlabs/es6-promisify/issues"},"files":["dist/promisify.js","dist/promise.js"],"repository":{"type":"git","url":"git+https://github.com/digitaldesignlabs/es6-promisify.git"},"devDependencies":{"babel-preset-es2015":"^6.9.0","eslint":"^2.13.1","gulp":"^3.9.1","gulp-babel":"^6.1.2","nodeunit":"^0.10.0"},"greenkeeper":{"ignore":["eslint"]},"gitHead":"7eb2f5e9ae858742d495978efebafaee6719da97","homepage":"https://github.com/digitaldesignlabs/es6-promisify#readme","_id":"es6-promisify@5.0.0","_shasum":"5109d62f3e56ea967c4b63505aef08291c8a5203","_from":".","_npmVersion":"3.10.8","_nodeVersion":"6.6.0","_npmUser":{"name":"digitaldesignlabs","email":"hello@digitaldesignlabs.com"},"dist":{"shasum":"5109d62f3e56ea967c4b63505aef08291c8a5203","size":2790,"noattachment":false,"key":"/es6-promisify/-/es6-promisify-5.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/es6-promisify/download/es6-promisify-5.0.0.tgz"},"maintainers":[{"name":"mikehall314","email":"mikehall314@gmail.com"}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/es6-promisify-5.0.0.tgz_1475062709197_0.16741771437227726"},"directories":{},"publish_time":1475062711006,"_cnpm_publish_time":1475062711006,"_hasShrinkwrap":false},"4.1.0":{"name":"es6-promisify","version":"4.1.0","description":"Converts callback-based functions to ES6 Promises","main":"dist/promisify.js","author":{"name":"Mike Hall","email":"mikehall314@gmail.com"},"keywords":["promises","es6","promisify"],"license":"MIT","dependencies":{"es6-promise":"^3.2.1"},"scripts":{"pretest":"./node_modules/jslint/bin/jslint.js --edition=\"2015-05-08\" ./lib/*.js ./tests/*.js","test":"gulp && nodeunit tests"},"bugs":{"url":"http://github.com/digitaldesignlabs/es6-promisify/issues"},"files":["dist/promisify.js","dist/promise.js"],"repository":{"type":"git","url":"git+https://github.com/digitaldesignlabs/es6-promisify.git"},"devDependencies":{"babel-preset-es2015":"^6.9.0","gulp":"^3.9.1","gulp-babel":"^6.1.2","jslint":"^0.10.0","nodeunit":"^0.9.1"},"gitHead":"a472964db76fd4db43568cc65f1de96430f6e213","homepage":"https://github.com/digitaldesignlabs/es6-promisify#readme","_id":"es6-promisify@4.1.0","_shasum":"dbcc1a3e93fdb8e9e709744182b7d2080c03fdb3","_from":".","_npmVersion":"3.9.1","_nodeVersion":"6.1.0","_npmUser":{"name":"digitaldesignlabs","email":"hello@digitaldesignlabs.com"},"dist":{"shasum":"dbcc1a3e93fdb8e9e709744182b7d2080c03fdb3","size":2174,"noattachment":false,"key":"/es6-promisify/-/es6-promisify-4.1.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/es6-promisify/download/es6-promisify-4.1.0.tgz"},"maintainers":[{"name":"mikehall314","email":"mikehall314@gmail.com"}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/es6-promisify-4.1.0.tgz_1463654863707_0.5240594602655619"},"directories":{},"publish_time":1463654866118,"_cnpm_publish_time":1463654866118,"_hasShrinkwrap":false},"4.0.0":{"name":"es6-promisify","version":"4.0.0","description":"Converts callback-based functions to ES6 Promises","main":"dist/promisify.js","author":{"name":"Mike Hall","email":"mikehall314@gmail.com"},"keywords":["promises","es6","promisify"],"license":"MIT","dependencies":{"es6-promise":"^3.1.2"},"scripts":{"pretest":"./node_modules/jslint/bin/jslint.js --edition=\"2015-05-08\" ./lib/*.js ./tests/*.js","test":"gulp && nodeunit tests"},"bugs":{"url":"http://github.com/digitaldesignlabs/es6-promisify/issues"},"files":["dist/promisify.js","dist/promise.js"],"repository":{"type":"git","url":"git+https://github.com/digitaldesignlabs/es6-promisify.git"},"devDependencies":{"babel-preset-es2015":"^6.6.0","gulp":"^3.9.1","gulp-babel":"^6.1.2","jslint":"^0.9.6","nodeunit":"^0.9.1"},"gitHead":"715904d326f5d89fdda539625d8eaaf34da900cf","homepage":"https://github.com/digitaldesignlabs/es6-promisify#readme","_id":"es6-promisify@4.0.0","_shasum":"78c1ffcd848ce233fd9629feaa5371ca6dcdf4b8","_from":".","_npmVersion":"3.8.3","_nodeVersion":"5.9.1","_npmUser":{"name":"digitaldesignlabs","email":"hello@digitaldesignlabs.com"},"dist":{"shasum":"78c1ffcd848ce233fd9629feaa5371ca6dcdf4b8","size":2608,"noattachment":false,"key":"/es6-promisify/-/es6-promisify-4.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/es6-promisify/download/es6-promisify-4.0.0.tgz"},"maintainers":[{"name":"mikehall314","email":"mikehall314@gmail.com"}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/es6-promisify-4.0.0.tgz_1459525849967_0.32798763434402645"},"directories":{},"publish_time":1459525852435,"_cnpm_publish_time":1459525852435,"_hasShrinkwrap":false},"3.0.0":{"name":"es6-promisify","version":"3.0.0","description":"Converts callback-based functions to ES6 Promises","main":"dist/promisify.js","author":{"name":"Mike Hall","email":"mikehall314@gmail.com"},"keywords":["promises","es6","promisify"],"license":"MIT","dependencies":{"es6-promise":"^3.0.2"},"scripts":{"pretest":"./node_modules/jslint/bin/jslint.js --edition=\"2015-05-08\" ./lib/*.js ./tests/*.js","test":"gulp && nodeunit tests"},"bugs":{"url":"http://github.com/twistdigital/es6-promisify/issues"},"files":["dist/promisify.js","dist/promise.js"],"repository":{"type":"git","url":"git+https://github.com/twistdigital/es6-promisify.git"},"devDependencies":{"gulp":"^3.9.0","gulp-babel":"^5.2.0","jslint":"^0.9.3","nodeunit":"^0.9.1"},"gitHead":"72144b95325cfe64a432bbfcdd592ecd836b9e95","homepage":"https://github.com/twistdigital/es6-promisify#readme","_id":"es6-promisify@3.0.0","_shasum":"22226b92957317f965247edfde9295f83efebe86","_from":".","_npmVersion":"2.13.4","_nodeVersion":"3.0.0","_npmUser":{"name":"digitaldesignlabs","email":"hello@digitaldesignlabs.com"},"dist":{"shasum":"22226b92957317f965247edfde9295f83efebe86","size":2742,"noattachment":false,"key":"/es6-promisify/-/es6-promisify-3.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/es6-promisify/download/es6-promisify-3.0.0.tgz"},"maintainers":[{"name":"mikehall314","email":"mikehall314@gmail.com"}],"directories":{},"publish_time":1439831480270,"_cnpm_publish_time":1439831480270,"_hasShrinkwrap":false},"2.0.0":{"name":"es6-promisify","version":"2.0.0","description":"Converts callback-based functions to ES6 Promises","main":"lib/promisify.js","author":{"name":"Mike Hall","email":"mikehall314@gmail.com"},"keywords":["promises","es6","promisify"],"license":"MIT","dependencies":{"es6-promise":"^2.3.0"},"scripts":{"pretest":"jslint ./lib/* ./tests/*","test":"nodeunit tests"},"bugs":{"url":"http://github.com/twistdigital/es6-promisify/issues"},"files":["lib/promisify.js","lib/promise.js"],"repository":{"type":"git","url":"git+https://github.com/twistdigital/es6-promisify.git"},"devDependencies":{"jslint":"^0.9.0","nodeunit":"^0.9.0"},"gitHead":"c49287dcbebd405914586a2b8a4af8b1efeedc23","homepage":"https://github.com/twistdigital/es6-promisify#readme","_id":"es6-promisify@2.0.0","_shasum":"6baf0486077028fe4b8cc735ff02124f470747a2","_from":".","_npmVersion":"2.11.1","_nodeVersion":"0.12.4","_npmUser":{"name":"twistdigital","email":"contact@twistdigital.co.uk"},"maintainers":[{"name":"mikehall314","email":"mikehall314@gmail.com"}],"dist":{"shasum":"6baf0486077028fe4b8cc735ff02124f470747a2","size":2500,"noattachment":false,"key":"/es6-promisify/-/es6-promisify-2.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/es6-promisify/download/es6-promisify-2.0.0.tgz"},"directories":{},"publish_time":1434357934859,"_cnpm_publish_time":1434357934859,"_hasShrinkwrap":false},"1.1.1":{"name":"es6-promisify","version":"1.1.1","description":"Converts callback-based functions to ES6 Promises","main":"lib/promisify.js","author":{"name":"Mike Hall","email":"mikehall314@gmail.com"},"keywords":["promises","es6","promisify"],"license":"MIT","dependencies":{"es6-promise":"^1.0.0"},"scripts":{"test":"nodeunit tests"},"bugs":{"url":"http://github.com/twistdigital/es6-promisify/issues"},"files":["lib/promisify.js","lib/promise.js"],"repository":{"type":"git","url":"https://github.com/twistdigital/es6-promisify.git"},"devDependencies":{"nodeunit":"^0.9.0"},"gitHead":"b3f5510ac18f6233135e5df05da0bdaecf705435","homepage":"https://github.com/twistdigital/es6-promisify","_id":"es6-promisify@1.1.1","_shasum":"b896a8b14f9c66b2be9f8105b619c1856e79be3b","_from":".","_npmVersion":"1.4.24","_npmUser":{"name":"twistdigital","email":"contact@twistdigital.co.uk"},"maintainers":[{"name":"mikehall314","email":"mikehall314@gmail.com"}],"dist":{"shasum":"b896a8b14f9c66b2be9f8105b619c1856e79be3b","size":2272,"noattachment":false,"key":"/es6-promisify/-/es6-promisify-1.1.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/es6-promisify/download/es6-promisify-1.1.1.tgz"},"directories":{},"publish_time":1410905978518,"_cnpm_publish_time":1410905978518,"_hasShrinkwrap":false},"1.1.0":{"name":"es6-promisify","version":"1.1.0","description":"Converts callback-based functions to ES6 Promises","main":"lib/promisify.js","author":{"name":"Mike Hall","email":"mikehall314@gmail.com"},"keywords":["promises","es6","promisify"],"license":"MIT","dependencies":{"es6-promise":"^1.0.0"},"scripts":{"test":"nodeunit tests"},"bugs":{"url":"http://github.com/twistdigital/es6-promisify/issues"},"files":["lib/promisify.js"],"repository":{"type":"git","url":"https://github.com/twistdigital/es6-promisify.git"},"devDependencies":{"nodeunit":"^0.9.0"},"gitHead":"b43125fb5b7d85bfcbe889e8ff6eceab5cf0895c","homepage":"https://github.com/twistdigital/es6-promisify","_id":"es6-promisify@1.1.0","_shasum":"cf625ed8b7adb0582091b7404321f974d4014272","_from":".","_npmVersion":"1.4.24","_npmUser":{"name":"twistdigital","email":"contact@twistdigital.co.uk"},"maintainers":[{"name":"mikehall314","email":"mikehall314@gmail.com"}],"dist":{"shasum":"cf625ed8b7adb0582091b7404321f974d4014272","size":1861,"noattachment":false,"key":"/es6-promisify/-/es6-promisify-1.1.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/es6-promisify/download/es6-promisify-1.1.0.tgz"},"directories":{},"publish_time":1410176905513,"_cnpm_publish_time":1410176905513,"_hasShrinkwrap":false},"1.0.2":{"name":"es6-promisify","version":"1.0.2","description":"Converts callback-based functions to ES6 Promises","main":"lib/promisify.js","author":{"name":"Mike Hall","email":"mikehall314@gmail.com"},"keywords":["promises","es6","promisify"],"license":"MIT","dependencies":{"es6-promise":"^1.0.0"},"scripts":{"test":"nodeunit tests"},"bugs":{"url":"http://github.com/twistdigital/es6-promisify/issues"},"files":["lib/promisify.js"],"repository":{"type":"git","url":"https://github.com/twistdigital/es6-promisify.git"},"devDependencies":{"nodeunit":"^0.9.0"},"gitHead":"43444e1ee384257e1d1d9c31246f5e0b85e6a05d","homepage":"https://github.com/twistdigital/es6-promisify","_id":"es6-promisify@1.0.2","_shasum":"6304f1059fac1b481d58e63ec2f56056aa8b9d01","_from":".","_npmVersion":"1.5.0-alpha-1","_npmUser":{"name":"twistdigital","email":"contact@twistdigital.co.uk"},"maintainers":[{"name":"mikehall314","email":"mikehall314@gmail.com"}],"dist":{"shasum":"6304f1059fac1b481d58e63ec2f56056aa8b9d01","size":1838,"noattachment":false,"key":"/es6-promisify/-/es6-promisify-1.0.2.tgz","tarball":"http://registry.cnpm.dingdandao.com/es6-promisify/download/es6-promisify-1.0.2.tgz"},"directories":{},"publish_time":1406750795036,"_cnpm_publish_time":1406750795036,"_hasShrinkwrap":false},"1.0.1":{"name":"es6-promisify","version":"1.0.1","description":"Converts callback-based functions to ES6 Promises","main":"lib/promisify.js","author":{"name":"Mike Hall","email":"mikehall314@gmail.com"},"keywords":["promises","es6","promisify"],"license":"MIT","dependencies":{"es6-promise":"^1.0.0"},"scripts":{"test":"nodeunit tests"},"bugs":{"url":"http://github.com/twistdigital/es6-promisify/issues"},"files":["lib/promisify.js"],"repository":{"type":"git","url":"https://github.com/twistdigital/es6-promisify.git"},"devDependencies":{"nodeunit":"^0.9.0"},"gitHead":"05d394f4cd10b4c292954a32f06ced7191430001","homepage":"https://github.com/twistdigital/es6-promisify","_id":"es6-promisify@1.0.1","_shasum":"9c187194fbd6ae53f14306832fe0c92b9796830e","_from":".","_npmVersion":"1.4.16","_npmUser":{"name":"twistdigital","email":"contact@twistdigital.co.uk"},"maintainers":[{"name":"mikehall314","email":"mikehall314@gmail.com"}],"dist":{"shasum":"9c187194fbd6ae53f14306832fe0c92b9796830e","size":2009,"noattachment":false,"key":"/es6-promisify/-/es6-promisify-1.0.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/es6-promisify/download/es6-promisify-1.0.1.tgz"},"directories":{},"publish_time":1403611996403,"_cnpm_publish_time":1403611996403,"_hasShrinkwrap":false},"1.0.0":{"name":"es6-promisify","version":"1.0.0","description":"Converts callback-based functions to ES6 Promises","main":"lib/promisify.js","author":{"name":"Mike Hall","email":"mikehall314@gmail.com"},"keywords":["promises","es6","promisify"],"license":"MIT","dependencies":{"es6-promise":"^1.0.0"},"scripts":{"test":"nodeunit tests"},"bugs":{"url":"http://github.com/twistdigital/es6-promisify/issues"},"files":["lib/promisify.js"],"repository":{"type":"git","url":"https://github.com/twistdigital/es6-promisify.git"},"devDependencies":{"nodeunit":"^0.9.0"},"homepage":"https://github.com/twistdigital/es6-promisify","_id":"es6-promisify@1.0.0","_shasum":"614ad2920e5da9bb4acf8393276441c29efda9cf","_from":".","_npmVersion":"1.4.7","_npmUser":{"name":"twistdigital","email":"contact@twistdigital.co.uk"},"maintainers":[{"name":"mikehall314","email":"mikehall314@gmail.com"}],"dist":{"shasum":"614ad2920e5da9bb4acf8393276441c29efda9cf","size":1948,"noattachment":false,"key":"/es6-promisify/-/es6-promisify-1.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/es6-promisify/download/es6-promisify-1.0.0.tgz"},"directories":{},"publish_time":1400087414285,"_cnpm_publish_time":1400087414285,"_hasShrinkwrap":false},"0.1.0":{"name":"es6-promisify","version":"0.1.0","description":"Converts many callback-based functions to ES6 Promises","main":"lib/promisify.js","author":{"name":"Mike Hall","email":"mikehall314@gmail.com"},"license":"MIT","dependencies":{"es6-promise":"^0.1.1"},"files":["lib/promisify.js"],"repository":{"type":"git","url":"https://github.com/twistdigital/es6-promisify.git"},"bugs":{"url":"https://github.com/twistdigital/es6-promisify/issues"},"homepage":"https://github.com/twistdigital/es6-promisify","_id":"es6-promisify@0.1.0","dist":{"shasum":"b9a88624b70495d9334fc30c71022c79567e66a2","size":1275,"noattachment":false,"key":"/es6-promisify/-/es6-promisify-0.1.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/es6-promisify/download/es6-promisify-0.1.0.tgz"},"_from":".","_npmVersion":"1.4.6","_npmUser":{"name":"twistdigital","email":"contact@twistdigital.co.uk"},"maintainers":[{"name":"mikehall314","email":"mikehall314@gmail.com"}],"directories":{},"publish_time":1397577181037,"_cnpm_publish_time":1397577181037,"_hasShrinkwrap":false}},"readme":"![Build Status](https://github.com/digitaldesignlabs/es6-promisify/actions/workflows/test.yml/badge.svg)\n\n# es6-promisify\n\nConverts callback-based functions to Promises, using a boilerplate callback function.\n\n## Install\n\nInstall with [npm](https://npmjs.org/package/es6-promisify)\n\n```bash\nnpm install es6-promisify\n```\n\n## Example\n\n```js\nconst {promisify} = require(\"es6-promisify\");\n\n// Convert the stat function\nconst fs = require(\"fs\");\nconst stat = promisify(fs.stat);\n\n// Now usable as a promise!\ntry {\n    const stats = await stat(\"example.txt\");\n    console.log(\"Got stats\", stats);\n} catch (err) {\n    console.error(\"Yikes!\", err);\n}\n```\n\n## Promisify methods\n\n```js\nconst {promisify} = require(\"es6-promisify\");\n\n// Create a promise-based version of send_command\nconst redis = require(\"redis\").createClient(6379, \"localhost\");\nconst client = promisify(redis.send_command.bind(redis));\n\n// Send commands to redis and get a promise back\ntry {\n    const pong = await client.ping();\n    console.log(\"Got\", pong);\n} catch (err) {\n    console.error(\"Unexpected error\", err);\n} finally {\n    redis.quit();\n}\n```\n\n## Handle multiple callback arguments, with named parameters\n\n```js\nconst {promisify} = require(\"es6-promisify\");\n\nfunction test(cb) {\n    return cb(undefined, 1, 2, 3);\n}\n\n// Create promise-based version of test\ntest[promisify.argumentNames] = [\"one\", \"two\", \"three\"];\nconst multi = promisify(test);\n\n// Returns named arguments\nconst result = await multi();\nconsole.log(result); // {one: 1, two: 2, three: 3}\n```\n\n## Provide your own Promise implementation\n\n```js\nconst {promisify} = require(\"es6-promisify\");\n\n// Now uses Bluebird\npromisify.Promise = require(\"bluebird\");\n\nconst test = promisify(cb => cb(undefined, \"test\"));\nconst result = await test();\nconsole.log(result); // \"test\", resolved using Bluebird\n```\n\n### Tests\n\nTest with tape\n\n```bash\n$ npm test\n```\n\nPublished under the [MIT License](http://opensource.org/licenses/MIT).\n","_attachments":{},"homepage":"https://github.com/mikehall314/es6-promisify#readme","bugs":{"url":"http://github.com/mikehall314/es6-promisify/issues"},"license":"MIT"}