callback-wrap
Wrapper for callback returning functions to transform them in promise returning functions.
Installation
$ npm install callback-wrap
Example
var wrap = ; { if a < b return ; return ;} var prmfn = ; ;
API
wrap(callbackFunction)
Wraps the callback function in a promise function that is returned.
License
MIT