Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

https://github.com/maximilianschmitt/stream-notifier

Easy error- and success-reporting in node.js streams
https://github.com/maximilianschmitt/stream-notifier

Last synced: about 1 month ago
JSON representation

Easy error- and success-reporting in node.js streams

Awesome Lists containing this project

README

        

# stream-notifier

> stream-notifier makes it easy to setup native Mac, Windows and Linux notifications (using [notifier](https://www.npmjs.com/package/node-notifier)) for error- and success-reporting in streams.

![stream-notifier](stream-notifier.gif)

## Using stream-notifier with gulp:

``` js
var streamNotifier = require('stream-notifier');

gulp.task('styles', function() {
var notify = streamNotifier('styles');

return gulp
.src('src/main.styl')
.pipe(stylus({ use: [jeet(), rupture(), normalize()] }))
.on('error', notify.error)
.pipe(rename('app.css'))
.pipe(gulp.dest('dist'))
.on('end', notify.end);
});
```