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

    when-promisifypublic

    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

    2

    version

    0.0.1

    license

    none

    repository

    github.com

    last publish

    collaborators

    • avatar