Nostradamus Predicting Maelstroms
Share your code. npm Orgs help your team discover, share, and reuse code. Create a free org »

when-promisify

0.0.1 • Public • Published

when-promisify

Make any node-style callback function return a promise instead.
when-promisify supports two ways to promisify a callback function.

  1. simple way: just pass a function

    var promisify = require('when-promisify')
    var promise = promisify( cbFunction )
    
  2. pass a function with its context

    var promisify = require('when-promisify')
    var promise = promisify( Object, 'methodName' )
    

Keywords

none

install

npm i when-promisify

Downloadsweekly downloads

1

version

0.0.1

license

none

repository

githubgithub

last publish

collaborators

  • avatar