{"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","tarball":"http://registry-npm.ywwl.com/cb2promise/download/cb2promise-1.0.2.tgz","integrity":"sha512-I2PVxvtP6hMEGdv6Yex0kDD7fs2EB5DJ6wIFDrdjXbflmnVM5+8/wx8vdXBvq6v+u/gXiw0AaIXo8d97kgjnLg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCyzFT2gHU7AgqyJ9JmhVh7sXeeUVekv9WsraYOrpU2cAIhAIYl8RGAcn2G5P8k/feE5WADwrM5MW6m+7DXFtfaxaOy"}],"size":6557,"noattachment":false,"key":"/cb2promise/-/cb2promise-1.0.2.tgz"},"maintainers":[{"name":"kikobeats","email":"josefrancisco.verdu@gmail.com"}],"directories":{},"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","publish_time":1444120183399,"_cnpm_publish_time":1444120183399,"dist-tags":{"latest":"1.1.1"}}