prmzfy
Promisify for nodebacks. Requires Promise to be supported by runtime or via polyfill.
Installation
$ npm i prmzfy
Usage
const prmzfy = ; const readFile = ; ;
Promisifying callback with multiple arguments:
const prmzfy = ; const sumAndProd = { ;}; const sp = ; ;
Don't forget to bind proper context when promisifying prototype methods:
const prmzfy = ; const foo = ; const bar = ;
Typescript
This module also contains type declarations.
;