Product
Introducing SSO
Streamline your login process and enhance security by enabling Single Sign-On (SSO) on the Socket platform, now available for all customers on the Enterprise plan, supporting 20+ identity providers.
gulp-plumber
Advanced tools
Readme
Prevent pipe breaking caused by errors from gulp plugins
This :monkey:-patch plugin is fixing issue with Node Streams piping. For explanations, read this small article.
Briefly it replaces pipe
method and removes standard onerror
handler on error
event, which unpipes streams on error by default.
First, install gulp-plumber
as a development dependency:
npm install --save-dev gulp-plumber
Then, add it to your gulpfile.js
:
var plumber = require('gulp-plumber');
var coffee = require('gulp-coffee');
gulp.src('./src/*.ext')
.pipe(plumber())
.pipe(coffee())
.pipe(gulp.dest('./dist'));
Returns Stream, that fixes pipe
methods on Streams that are next in pipeline.
Type: Object
/ Function
Default: {}
Sets options described below from its properties. If type is Function
it will be set as errorHandler
.
Type: Boolean
Default: true
Monkeypatch pipe
functions in underlying streams in pipeline.
Type: Boolean
/ Function
Default: true
Handle errors in underlying streams and output them to console.
function
- it will be attached to stream on('error')
.false
- error handler will not be attached.true
- default error handler will be attached.This method will return default behaviour for pipeline after it was piped.
var plumber = require('gulp-plumber');
gulp.src('./src/*.scss')
.pipe(plumber())
.pipe(sass())
.pipe(uglify())
.pipe(plumber.stop())
.pipe(gulp.dest('./dist'));
FAQs
Prevent pipe breaking caused by errors from gulp plugins
The npm package gulp-plumber receives a total of 132,576 weekly downloads. As such, gulp-plumber popularity was classified as popular.
We found that gulp-plumber demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Product
Streamline your login process and enhance security by enabling Single Sign-On (SSO) on the Socket platform, now available for all customers on the Enterprise plan, supporting 20+ identity providers.
Security News
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
Security News
As cyber threats become more autonomous, AI-powered defenses are crucial for businesses to stay ahead of attackers who can exploit software vulnerabilities at scale.