Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/devgru/errbacker
- Owner: devgru
- Created: 2011-02-15T12:04:36.000Z (almost 14 years ago)
- Default Branch: master
- Last Pushed: 2011-03-16T14:46:23.000Z (over 13 years ago)
- Last Synced: 2024-11-03T21:35:27.544Z (14 days ago)
- Language: JavaScript
- Homepage:
- Size: 92.8 KB
- Stars: 2
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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))