Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/maximilianschmitt/stream-notifier
- Owner: maximilianschmitt
- License: mit
- Created: 2015-03-03T15:47:37.000Z (almost 10 years ago)
- Default Branch: master
- Last Pushed: 2015-03-03T16:11:12.000Z (almost 10 years ago)
- Last Synced: 2024-04-16T10:27:03.397Z (9 months ago)
- Language: JavaScript
- Homepage:
- Size: 480 KB
- Stars: 2
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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);
});
```