Permalink
Switch branches/tags
Nothing to show
Find file
Fetching contributors…
Cannot retrieve contributors at this time
11 lines (6 sloc) 272 Bytes

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))