Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/devgru/errbacker

Simple module to curry functions with similar errback
https://github.com/devgru/errbacker

Last synced: 4 days ago
JSON representation

Simple module to curry functions with similar errback

Awesome Lists containing this project

README

        

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