errbacker

Splits any function(error, result1, result2...) into two separate functions (errback and callback) via currying errback

npm install errbacker
7 downloads in the last week
7 downloads in the last month
Use like this:

    var errbacker = require('errbacker')
    var errback = console.error
    
    var callback = console.log //your function where you want to push results
    
    var withoutErrors = errbacker.curry(errback)
    fs.stat('/tmp', withoutErrors(callback))

npm loves you