@eklingen/vinyl-stream-notifier

5.0.2 • Public • Published

Small vinyl-stream wrapper -aka Gulp plugin- for node-notifier.

Run node-notifier within your streams. Useful to report errors, for example in combination with "gulp-plumber".

NOTE: No tests have been written yet!

Installation

yarn install. Or npm install. Or just copy the files to your own project.

Usage

With gulp-plumber:

const notifierWrapper = require('@eklingen/vinyl-stream-notifier')
return stream.pipe(plumber({ errorHandler: notifierWrapper() }))

With native node pipelines:

const notifierWrapper = require('@eklingen/vinyl-stream-notifier')
const notify = notifier({ ...options }, () => {})

notify({ message: error })

Options

See the options of "node-notifier".

Dependencies

This package requires "node-notifier".


Copyright (c) 2019 Elco Klingen. MIT License.

/@eklingen/vinyl-stream-notifier/

    Package Sidebar

    Install

    npm i @eklingen/vinyl-stream-notifier

    Weekly Downloads

    2

    Version

    5.0.2

    License

    MIT

    Unpacked Size

    4.88 kB

    Total Files

    5

    Last publish

    Collaborators

    • eklingen