New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

gulp-nop

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

gulp-nop

No operation

0.0.3
latest
Source
npm
Version published
Weekly downloads
6.3K
21.99%
Maintainers
1
Weekly downloads
 
Created
Source

gulp-nop Build Status

«No operation». Useful when you want primitive conditional execution in a long pipeline.

This plugin happened to exist just because gulp and gulp-util are two different packages in different repositories and I've overlooked noop() from gulp-util package. You probably should use gulp-util.

From the other side, it is a bit lighter than gulp-util package and if you need just «no operation» from there, here it is.

Install:

npm install gulp-nop --save-dev

Example:

var nop = require('gulp-nop');

gulp.task('some-task', function() {
    return gulp.src(['some files'])
        .pipe(some())
        .pipe(tasks())
        .pipe(along())
        .pipe(minify ? minified() : nop())
        .pipe(pipeline())
        .pipe(gulp.dest('./build'));
});

Keywords

gulpplugin

FAQs

Package last updated on 23 May 2014

Did you know?

Socket

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.

Install

Related posts