{"name":"es6-denodeify","version":"0.1.2","description":"Convert callbacks to promises.","homepage":"https://github.com/valeriangalliat/es6-denodeify","bugs":{"url":"https://github.com/valeriangalliat/es6-denodeify/issues"},"license":{"type":"Unlicense","url":"http://unlicense.org/"},"author":{"name":"Valérian Galliat","url":"http://val.codejam.info/"},"files":["index.js","README.md","UNLICENSE"],"repository":{"type":"git","url":"git+https://github.com/valeriangalliat/es6-denodeify.git"},"scripts":{"prepublish":"make"},"devDependencies":{"babel":"^4.3.0"},"gitHead":"76381b8eaa29871bf1abb4a8c32f36b45e32780d","_id":"es6-denodeify@0.1.2","_shasum":"92e5f7cca549e2c38f919c7e4f92f30874801cbc","_from":".","_npmVersion":"2.9.0","_nodeVersion":"0.12.2","_npmUser":{"name":"valeriangalliat","email":"val@codejam.info"},"maintainers":[{"name":"valeriangalliat","email":"val@codejam.info"}],"dist":{"shasum":"92e5f7cca549e2c38f919c7e4f92f30874801cbc","tarball":"http://registry-npm.ywwl.com/es6-denodeify/download/es6-denodeify-0.1.2.tgz","integrity":"sha512-yx3GE2yiRFdJo8uHd8Ar8XPmWDc14R1xWYpTUpf9gAbqaCNiLl4kPfVZcvh3rTS+x6MfZY8i/bp6qAbvDLCyAg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCL373ZoPF+Y51ETYquiIupXnFDsknZp1rHcpnSMRiCMQIgaR+T5tFdVdc1B3ll8MfyhOKrTWvaaLSmnl0fUkLLXN0="}],"size":2112,"noattachment":false,"key":"/es6-denodeify/-/es6-denodeify-0.1.2.tgz"},"directories":{},"readme":"# es6-denodeify [![npm version](http://img.shields.io/npm/v/es6-denodeify.svg?style=flat-square)](https://www.npmjs.org/package/es6-denodeify)\n\n> Convert callbacks to promises.\n\nWhy?\n----\n\nThere's already a lot of modules in npm registry to convert callbacks to\npromises. Why another?\n\nAll the modules I found for this purpuse were either depending on some\nspecific promise implementation, or expecting a global `Promise`\nconstructor. I needed a module that allowed me to inject the promise\nimplementation I'm using. And I found it, it is called\n[promise-denodeify](https://github.com/clebert/promise-denodeify), but\nsince a few weeks it's marked as deprecated, without any recommended\nalternative solution, and it displays a warning during npm installs when\nyou depend on it, which makes people freak out.\n\nI already [tweeted](https://twitter.com/valeriangalliat/status/558209548390240256)\na really simple `denodeify` implementation, leveraging ES6 arrow\nfunctions, and I like it in its brevity. I'm now publishing it as a npm\npackage.\n\nUsage\n-----\n\n```js\nconst denodeify = require('es6-denodeify')(Promise)\nconst fs = require('fs')\nconst readFile = denodeify(fs.readFile)\n\nreadFile('package.json', 'utf8').then(console.log)\n```\n\nIf you have a global `Promise` constructor and you want es6-denodeify to\nuse it, you can ommit the explicit `Promise` injection.\n\n```js\nconst denodeify = require('es6-denodeify')()\n```\n","publish_time":1431371146634,"_cnpm_publish_time":1431371146634,"dist-tags":{"latest":"0.1.5"}}