Nicely Pointed Mandibles

    promisify.es6

    1.0.0 • Public • Published

    promisify.es6

    Promisify a callback-based function.

    Why Another Promisify Module?

    Installation

    npm install --save promisify.es6
    

    Example

    const promisify = require('promisify.es6')
     
    function sum (a, b, callback) {
      callback(null, a + b)
    }
     
    let promisifiedSum = promisify(sum)
     
    promisifiedSum(1, 2).then(sum => {
      console.log(sum) // --> 3
    })
     

    License

    WTFPL – Do What the F*ck You Want to Public License.

    Made with ❤️ by @MarkTiedemann.

    Install

    npm i promisify.es6

    DownloadsWeekly Downloads

    2

    Version

    1.0.0

    License

    WTFPL

    Last publish

    Collaborators

    • marktiedemann