{"_id":"cb2promise","_rev":"5442","name":"cb2promise","description":"Converts whatever standard NodeJS callback function into ES6 standard promise.","dist-tags":{"latest":"1.1.1"},"maintainers":[{"name":"kikobeats","email":"josefrancisco.verdu@gmail.com"}],"time":{"modified":"2021-06-03T09:56:42.000Z","created":"2015-07-28T16:45:54.103Z","1.1.1":"2019-03-08T10:22:39.187Z","1.1.0":"2017-04-28T23:04:25.922Z","1.0.7":"2017-04-28T07:53:58.991Z","1.0.6":"2017-04-27T22:08:32.330Z","1.0.5":"2017-03-02T22:26:38.005Z","1.0.4":"2017-03-02T08:53:10.574Z","1.0.3":"2017-02-07T14:04:32.432Z","1.0.2":"2015-10-06T08:29:43.399Z","1.0.1":"2015-07-28T17:58:05.857Z","1.0.0":"2015-07-28T16:45:54.103Z"},"users":{},"author":{"name":"Kiko Beats","email":"josefrancisco.verdu@gmail.com","url":"https://github.com/Kikobeats"},"repository":{"type":"git","url":"git+https://github.com/kikobeats/cb2promise.git"},"versions":{"1.1.1":{"name":"cb2promise","description":"Converts whatever standard NodeJS callback function into ES6 standard promise.","homepage":"https://github.com/Kikobeats/cb2promise","version":"1.1.1","main":"index.js","author":{"name":"Kiko Beats","email":"josefrancisco.verdu@gmail.com","url":"https://github.com/Kikobeats"},"repository":{"type":"git","url":"git+https://github.com/kikobeats/cb2promise.git"},"bugs":{"url":"https://github.com/Kikobeats/cb2promise/issues"},"keywords":["ES6","callback","cb","converter","promise","standard"],"dependencies":{"mimic-fn":"~2.0.0","sliced":"~1.0.1"},"devDependencies":{"bluebird":"latest","coveralls":"latest","es6-promisify":"latest","mocha":"latest","nanobench":"latest","nyc":"latest","pify":"latest","should":"latest","standard":"latest","standard-markdown":"latest"},"engines":{"node":">= 4"},"scripts":{"coveralls":"nyc report --reporter=text-lcov | coveralls","lint":"standard-markdown && standard index.js benchmark.js test","optimization-test":"node --trace_opt --trace_deopt --allow-natives-syntax optimization-test.js","pretest":"npm run lint","test":"nyc mocha && npm run optimization-test"},"license":"MIT","standard":{"globals":["describe","it"]},"gitHead":"ea3450a154b589528146c22b0be17b609c14c0bc","_id":"cb2promise@1.1.1","_npmVersion":"6.4.1","_nodeVersion":"8.15.1","_npmUser":{"name":"kikobeats","email":"josefrancisco.verdu@gmail.com"},"dist":{"shasum":"6d97ef9d031202175564eee48af09b17eceded68","size":3281,"noattachment":false,"key":"/cb2promise/-/cb2promise-1.1.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/cb2promise/download/cb2promise-1.1.1.tgz"},"maintainers":[{"name":"kikobeats","email":"josefrancisco.verdu@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/cb2promise_1.1.1_1552040558974_0.0619350089449453"},"_hasShrinkwrap":false,"publish_time":1552040559187,"_cnpm_publish_time":1552040559187},"1.1.0":{"name":"cb2promise","description":"Converts whatever standard NodeJS callback function into ES6 standard promise.","homepage":"https://github.com/Kikobeats/cb2promise","version":"1.1.0","main":"index.js","author":{"name":"Kiko Beats","email":"josefrancisco.verdu@gmail.com","url":"https://github.com/Kikobeats"},"repository":{"type":"git","url":"git+https://github.com/kikobeats/cb2promise.git"},"bugs":{"url":"https://github.com/Kikobeats/cb2promise/issues"},"keywords":["ES6","callback","cb","converter","promise","standard"],"dependencies":{"mimic-fn":"~1.1.0","sliced":"~1.0.1"},"devDependencies":{"bluebird":"latest","coveralls":"latest","es6-promisify":"latest","mocha":"latest","nanobench":"latest","nyc":"latest","pify":"latest","should":"latest","standard":"latest","standard-markdown":"latest"},"engines":{"node":">= 4"},"files":["index.js"],"scripts":{"coveralls":"nyc report --reporter=text-lcov | coveralls","lint":"standard-markdown && standard index.js benchmark.js test","optimization-test":"node --trace_opt --trace_deopt --allow-natives-syntax optimization-test.js","pretest":"npm run lint","test":"nyc mocha && npm run optimization-test"},"license":"MIT","standard":{"globals":["describe","it"]},"gitHead":"4dfda07ecccb648e64b285d6b4ee625091e4c799","_id":"cb2promise@1.1.0","_shasum":"40c8fc494f97fae9ee0c613ff0c4b8b354c54f67","_from":".","_npmVersion":"4.2.0","_nodeVersion":"7.9.0","_npmUser":{"name":"kikobeats","email":"josefrancisco.verdu@gmail.com"},"dist":{"shasum":"40c8fc494f97fae9ee0c613ff0c4b8b354c54f67","size":3020,"noattachment":false,"key":"/cb2promise/-/cb2promise-1.1.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/cb2promise/download/cb2promise-1.1.0.tgz"},"maintainers":[{"name":"kikobeats","email":"josefrancisco.verdu@gmail.com"}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/cb2promise-1.1.0.tgz_1493420663956_0.4125052981544286"},"directories":{},"publish_time":1493420665922,"_cnpm_publish_time":1493420665922,"_hasShrinkwrap":false},"1.0.7":{"name":"cb2promise","description":"Converts whatever standard NodeJS callback function into ES6 standard promise.","homepage":"https://github.com/Kikobeats/cb2promise","version":"1.0.7","main":"index.js","author":{"name":"Kiko Beats","email":"josefrancisco.verdu@gmail.com","url":"https://github.com/Kikobeats"},"repository":{"type":"git","url":"git+https://github.com/kikobeats/cb2promise.git"},"bugs":{"url":"https://github.com/Kikobeats/cb2promise/issues"},"keywords":["ES6","callback","cb","converter","promise","standard"],"dependencies":{"sliced":"~1.0.1"},"devDependencies":{"coffee-script":"latest","mocha":"latest","should":"latest","standard":"latest"},"engines":{"node":">= 4"},"files":["dist","index.js"],"scripts":{"test":"sh test/test.sh"},"license":"MIT","gitHead":"f7b9a429108775fd12af84f13c5c4115eabc381d","_id":"cb2promise@1.0.7","_shasum":"6e082bf0e1b16a41d133ce770bed9517b95d807f","_from":".","_npmVersion":"4.2.0","_nodeVersion":"7.9.0","_npmUser":{"name":"kikobeats","email":"josefrancisco.verdu@gmail.com"},"dist":{"shasum":"6e082bf0e1b16a41d133ce770bed9517b95d807f","size":2419,"noattachment":false,"key":"/cb2promise/-/cb2promise-1.0.7.tgz","tarball":"http://registry.cnpm.dingdandao.com/cb2promise/download/cb2promise-1.0.7.tgz"},"maintainers":[{"name":"kikobeats","email":"josefrancisco.verdu@gmail.com"}],"_npmOperationalInternal":{"host":"packages-18-east.internal.npmjs.com","tmp":"tmp/cb2promise-1.0.7.tgz_1493366038240_0.08182198042050004"},"directories":{},"publish_time":1493366038991,"_cnpm_publish_time":1493366038991,"_hasShrinkwrap":false},"1.0.6":{"name":"cb2promise","description":"Converts whatever standard NodeJS callback function into ES6 standard promise.","homepage":"https://github.com/Kikobeats/cb2promise","version":"1.0.6","main":"index.js","author":{"name":"Kiko Beats","email":"josefrancisco.verdu@gmail.com","url":"https://github.com/Kikobeats"},"repository":{"type":"git","url":"git+https://github.com/kikobeats/cb2promise.git"},"bugs":{"url":"https://github.com/Kikobeats/cb2promise/issues"},"keywords":["ES6","callback","cb","converter","promise","standard"],"dependencies":{"sliced":"~1.0.1"},"devDependencies":{"coffee-script":"latest","mocha":"latest","should":"latest","standard":"latest"},"engines":{"node":">= 4"},"files":["dist","index.js"],"scripts":{"test":"sh test/test.sh"},"license":"MIT","gitHead":"7085a65b9e53198edecd0dfe8f3b8c894ff3f448","_id":"cb2promise@1.0.6","_shasum":"5064107b27ce78a8d87001b6713f41a41205ef53","_from":".","_npmVersion":"4.2.0","_nodeVersion":"7.9.0","_npmUser":{"name":"kikobeats","email":"josefrancisco.verdu@gmail.com"},"dist":{"shasum":"5064107b27ce78a8d87001b6713f41a41205ef53","size":2400,"noattachment":false,"key":"/cb2promise/-/cb2promise-1.0.6.tgz","tarball":"http://registry.cnpm.dingdandao.com/cb2promise/download/cb2promise-1.0.6.tgz"},"maintainers":[{"name":"kikobeats","email":"josefrancisco.verdu@gmail.com"}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/cb2promise-1.0.6.tgz_1493330910509_0.5655177165754139"},"directories":{},"publish_time":1493330912330,"_hasShrinkwrap":false,"_cnpm_publish_time":1493330912330},"1.0.5":{"name":"cb2promise","description":"Converts whatever standard NodeJS callback function into ES6 standard promise.","homepage":"https://github.com/Kikobeats/cb2promise","version":"1.0.5","main":"index.js","author":{"name":"Kiko Beats","email":"josefrancisco.verdu@gmail.com","url":"https://github.com/Kikobeats"},"repository":{"type":"git","url":"git+https://github.com/kikobeats/cb2promise.git"},"bugs":{"url":"https://github.com/Kikobeats/cb2promise/issues"},"keywords":["ES6","callback","cb","converter","promise","standard"],"dependencies":{"pinkie-promise":"~2.0.1","sliced":"~1.0.1"},"devDependencies":{"browserify":"latest","coffee-script":"latest","mocha":"latest","should":"latest","standard":"latest"},"engines":{"node":">= 4"},"files":["dist","index.js"],"scripts":{"test":"sh test/test.sh"},"license":"MIT","gitHead":"9699d7655b07d030fd166cf64f4cba50d6657dda","_id":"cb2promise@1.0.5","_shasum":"1ad713ce6a1bf5ec5cf4b07bda0f8689a41e534c","_from":".","_npmVersion":"4.1.2","_nodeVersion":"7.6.0","_npmUser":{"name":"kikobeats","email":"josefrancisco.verdu@gmail.com"},"dist":{"shasum":"1ad713ce6a1bf5ec5cf4b07bda0f8689a41e534c","size":2457,"noattachment":false,"key":"/cb2promise/-/cb2promise-1.0.5.tgz","tarball":"http://registry.cnpm.dingdandao.com/cb2promise/download/cb2promise-1.0.5.tgz"},"maintainers":[{"name":"kikobeats","email":"josefrancisco.verdu@gmail.com"}],"_npmOperationalInternal":{"host":"packages-18-east.internal.npmjs.com","tmp":"tmp/cb2promise-1.0.5.tgz_1488493597332_0.32359861047007143"},"directories":{},"publish_time":1488493598005,"_cnpm_publish_time":1488493598005,"_hasShrinkwrap":false},"1.0.4":{"name":"cb2promise","description":"Converts whatever standard NodeJS callback function into ES6 standard promise.","homepage":"https://github.com/Kikobeats/cb2promise","version":"1.0.4","main":"./dist/cb2promise.js","author":{"name":"Kiko Beats","email":"josefrancisco.verdu@gmail.com","url":"https://github.com/Kikobeats"},"repository":{"type":"git","url":"git+https://github.com/kikobeats/cb2promise.git"},"bugs":{"url":"https://github.com/Kikobeats/cb2promise/issues"},"keywords":["ES6","callback","cb","converter","promise","standard"],"dependencies":{"coffee-script":"*","pinkie-promise":"*"},"devDependencies":{"browserify":"*","coffeeify":"*","gulp":"*","gulp-header":"*","gulp-uglify":"*","gulp-util":"*","mocha":"*","should":"*","vinyl-buffer":"*","vinyl-source-stream":"*"},"engines":{"node":">= 0.10.0","npm":">= 1.4.0"},"scripts":{"test":"sh test/test.sh"},"license":"MIT","gitHead":"8510a6483ba3f0489851d68ec9337f98e5332f23","_id":"cb2promise@1.0.4","_shasum":"860b232f9faa0f00b5232b36efb6a4c06f775f15","_from":".","_npmVersion":"4.1.2","_nodeVersion":"7.6.0","_npmUser":{"name":"kikobeats","email":"josefrancisco.verdu@gmail.com"},"dist":{"shasum":"860b232f9faa0f00b5232b36efb6a4c06f775f15","size":5775,"noattachment":false,"key":"/cb2promise/-/cb2promise-1.0.4.tgz","tarball":"http://registry.cnpm.dingdandao.com/cb2promise/download/cb2promise-1.0.4.tgz"},"maintainers":[{"name":"kikobeats","email":"josefrancisco.verdu@gmail.com"}],"_npmOperationalInternal":{"host":"packages-18-east.internal.npmjs.com","tmp":"tmp/cb2promise-1.0.4.tgz_1488444789938_0.746903425315395"},"directories":{},"publish_time":1488444790574,"_cnpm_publish_time":1488444790574,"_hasShrinkwrap":false},"1.0.3":{"name":"cb2promise","description":"Converts whatever standard NodeJS callback function into ES6 standard promise.","homepage":"https://github.com/Kikobeats/cb2promise","version":"1.0.3","main":"./index.js","author":{"name":"Kiko Beats","email":"josefrancisco.verdu@gmail.com","url":"https://github.com/Kikobeats"},"repository":{"type":"git","url":"git+https://github.com/kikobeats/cb2promise.git"},"bugs":{"url":"https://github.com/Kikobeats/cb2promise/issues"},"keywords":["ES6","standard","callback","cb","promise","converter"],"dependencies":{"coffee-script":"*","pinkie-promise":"*"},"devDependencies":{"browserify":"*","coffeeify":"*","gulp":"*","gulp-header":"*","gulp-uglify":"*","gulp-util":"*","mocha":"*","should":"*","vinyl-buffer":"*","vinyl-source-stream":"*"},"engines":{"node":">= 0.10.0","npm":">= 1.4.0"},"scripts":{"test":"sh test/test.sh"},"license":"MIT","gitHead":"909f45485c95a059771ddb95cc2b02ef635b3c12","_id":"cb2promise@1.0.3","_shasum":"6f143f0a2a95b52f76b2135dca7c691cecf6b768","_from":".","_npmVersion":"4.1.2","_nodeVersion":"7.5.0","_npmUser":{"name":"kikobeats","email":"josefrancisco.verdu@gmail.com"},"dist":{"shasum":"6f143f0a2a95b52f76b2135dca7c691cecf6b768","size":5612,"noattachment":false,"key":"/cb2promise/-/cb2promise-1.0.3.tgz","tarball":"http://registry.cnpm.dingdandao.com/cb2promise/download/cb2promise-1.0.3.tgz"},"maintainers":[{"name":"kikobeats","email":"josefrancisco.verdu@gmail.com"}],"_npmOperationalInternal":{"host":"packages-18-east.internal.npmjs.com","tmp":"tmp/cb2promise-1.0.3.tgz_1486476271782_0.16525632748380303"},"directories":{},"publish_time":1486476272432,"_cnpm_publish_time":1486476272432,"_hasShrinkwrap":false},"1.0.2":{"name":"cb2promise","description":"Converts whatever standard NodeJS callback function into ES6 standard promise.","homepage":"https://github.com/Kikobeats/cb2promise","version":"1.0.2","main":"./index.js","author":{"name":"Kiko Beats","email":"josefrancisco.verdu@gmail.com","url":"https://github.com/Kikobeats"},"repository":{"type":"git","url":"https://github.com/Kikobeats/cb2promise"},"bugs":{"url":"https://github.com/Kikobeats/cb2promise/issues"},"keywords":["ES6","standard","callback","cb","promise","converter"],"dependencies":{"coffee-script":"*","pinkie-promise":"*"},"devDependencies":{"browserify":"*","coffeeify":"*","gulp":"*","gulp-header":"*","gulp-uglify":"*","gulp-util":"*","mocha":"*","should":"*","vinyl-buffer":"*","vinyl-source-stream":"*"},"engines":{"node":">= 0.10.0","npm":">= 1.4.0"},"scripts":{"test":"sh test/test.sh"},"license":"MIT","gitHead":"383294f9270e579f6b558d67f2bf8e6e95760f07","_id":"cb2promise@1.0.2","_shasum":"6b2e7a29b29ab34df99a87e63b2077116488cc6f","_from":".","_npmVersion":"2.11.3","_nodeVersion":"0.12.7","_npmUser":{"name":"kikobeats","email":"josefrancisco.verdu@gmail.com"},"dist":{"shasum":"6b2e7a29b29ab34df99a87e63b2077116488cc6f","size":6557,"noattachment":false,"key":"/cb2promise/-/cb2promise-1.0.2.tgz","tarball":"http://registry.cnpm.dingdandao.com/cb2promise/download/cb2promise-1.0.2.tgz"},"maintainers":[{"name":"kikobeats","email":"josefrancisco.verdu@gmail.com"}],"directories":{},"publish_time":1444120183399,"_cnpm_publish_time":1444120183399,"_hasShrinkwrap":false},"1.0.1":{"name":"cb2promise","description":"Converts whatever standard NodeJS callback function into ES6 standard promise.","homepage":"https://github.com/Kikobeats/cb2promise","version":"1.0.1","main":"./index.js","author":{"name":"Kiko Beats","email":"josefrancisco.verdu@gmail.com","url":"https://github.com/Kikobeats"},"repository":{"type":"git","url":"https://github.com/Kikobeats/cb2promise"},"bugs":{"url":"https://github.com/Kikobeats/cb2promise/issues"},"keywords":["ES6","standard","callback","cb","promise","converter"],"dependencies":{"coffee-script":"*","pinkie-promise":"~1.0.0"},"devDependencies":{"browserify":"*","coffeeify":"*","gulp":"*","gulp-header":"*","gulp-uglify":"*","gulp-util":"*","mocha":"*","should":"*","vinyl-buffer":"*","vinyl-source-stream":"*"},"engines":{"node":">= 0.10.0","npm":">= 1.4.0"},"scripts":{"test":"sh test/test.sh"},"license":"MIT","gitHead":"eb042af285d3a584542b6bc73fe96be602d6143e","_id":"cb2promise@1.0.1","_shasum":"e881bbcbe502e058b650ea300ecb540ceba45bbc","_from":".","_npmVersion":"2.11.3","_nodeVersion":"0.12.7","_npmUser":{"name":"kikobeats","email":"josefrancisco.verdu@gmail.com"},"dist":{"shasum":"e881bbcbe502e058b650ea300ecb540ceba45bbc","size":6260,"noattachment":false,"key":"/cb2promise/-/cb2promise-1.0.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/cb2promise/download/cb2promise-1.0.1.tgz"},"maintainers":[{"name":"kikobeats","email":"josefrancisco.verdu@gmail.com"}],"directories":{},"publish_time":1438106285857,"_cnpm_publish_time":1438106285857,"_hasShrinkwrap":false},"1.0.0":{"name":"cb2promise","description":"Converts whatever standard NodeJS callback function into ES6 standard promise.","homepage":"https://github.com/Kikobeats/cb2promise","version":"1.0.0","main":"./index.js","author":{"name":"Kiko Beats","email":"josefrancisco.verdu@gmail.com","url":"https://github.com/Kikobeats"},"repository":{"type":"git","url":"https://github.com/Kikobeats/cb2promise"},"bugs":{"url":"https://github.com/Kikobeats/cb2promise/issues"},"keywords":["ES6","standard","callback","cb","promise","converter"],"dependencies":{"pinkie-promise":"~1.0.0"},"devDependencies":{"browserify":"*","coffee-script":"*","coffeeify":"*","gulp":"*","gulp-header":"*","gulp-uglify":"*","gulp-util":"*","mocha":"*","should":"*","vinyl-buffer":"*","vinyl-source-stream":"*"},"engines":{"node":">= 0.10.0","npm":">= 1.4.0"},"scripts":{"test":"sh test/test.sh"},"license":"MIT","gitHead":"ab89ed4afd60a9b7e3adf1c1e109c6a7ed3f2d12","_id":"cb2promise@1.0.0","_shasum":"1e317266e695e782d12d36c10891a17c7a0906d8","_from":".","_npmVersion":"2.11.3","_nodeVersion":"0.12.7","_npmUser":{"name":"kikobeats","email":"josefrancisco.verdu@gmail.com"},"dist":{"shasum":"1e317266e695e782d12d36c10891a17c7a0906d8","size":6256,"noattachment":false,"key":"/cb2promise/-/cb2promise-1.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/cb2promise/download/cb2promise-1.0.0.tgz"},"maintainers":[{"name":"kikobeats","email":"josefrancisco.verdu@gmail.com"}],"directories":{},"publish_time":1438101954103,"_cnpm_publish_time":1438101954103,"_hasShrinkwrap":false}},"readme":"# cb2promise\n\n![Last version](https://img.shields.io/github/tag/Kikobeats/cb2promise.svg?style=flat-square)\n[![Build Status](https://img.shields.io/travis/Kikobeats/cb2promise/master.svg?style=flat-square)](https://travis-ci.org/Kikobeats/cb2promise)\n[![Coverage Status](https://img.shields.io/coveralls/Kikobeats/cb2promise.svg?style=flat-square)](https://coveralls.io/github/Kikobeats/cb2promise)\n[![Dependency status](https://img.shields.io/david/Kikobeats/cb2promise.svg?style=flat-square)](https://david-dm.org/Kikobeats/cb2promise)\n[![Dev Dependencies Status](https://img.shields.io/david/dev/Kikobeats/cb2promise.svg?style=flat-square)](https://david-dm.org/Kikobeats/cb2promise#info=devDependencies)\n[![NPM Status](https://img.shields.io/npm/dm/cb2promise.svg?style=flat-square)](https://www.npmjs.org/package/cb2promise)\n[![Donate](https://img.shields.io/badge/donate-paypal-blue.svg?style=flat-square)](https://paypal.me/Kikobeats)\n\n> It converts from standard NodeJS callback into a ES2015 Promise.\n\nI use this library across my project for make easy provide API's that works with callback and promise style.\n\n## Install\n\n```bash\nnpm install cb2promise --save\n```\n\n## Bencharmk\n\n```bash\n$ node benchmark.js\n\n# cb2promise\n# 1,2,3,4,5,6,7,8,8,9,10\nok ~2.65 ms (0 s + 2649092 ns)\n\n# pify\n# 1\nok ~912 μs (0 s + 911730 ns)\n\n# es6-promisify\n# 1\nok ~967 μs (0 s + 966663 ns)\n\n# bluebird\n# 1\nok ~3.41 ms (0 s + 3412077 ns)\n\nall benchmarks completed\nok ~7.94 ms (0 s + 7939562 ns)\n```\n\n## Usage\n\n```js\nconst cb2promise = require('cb2promise')\n\nconst callbackFn = function (message, done) {\n  return done(null, message)\n}\n\nconst promise = cb2promise(callbackFn, 'hello world')\n\npromise().then(console.log)\n// => hello world\n```\n\n## License\n\nMIT © [Kiko Beats](http://www.kikobeats.com)\n","_attachments":{},"homepage":"https://github.com/Kikobeats/cb2promise","bugs":{"url":"https://github.com/Kikobeats/cb2promise/issues"},"license":"MIT"}