de-promisify
we all enjoy the convenience of ES6 / A+ Promises; yet once in a while, an asynchronous function in our stack still requires a callback.
This "de-promisify" module aims to solve that omg-headache by simply unwrapping an ES6 / A+ Promise into the good 'ol error-first callback days of our youth.
Version
0.0.4
Installation
Native ES6 Promises is required therefore Node v4.2.4+
$ npm i de-promisify
Usage
const fs = ;const bluebird = ;const readFileAsync = bluebird;const testAsync = ; ;
Testing
$ npm i de-promisify$ cd ./node_modules/de-promisify$ npm i$ npm test
License
MIT