node package manager

gulp-nodupe

Overview

Breaks a gulp stream if a duplicate files (duplicate meaning identical contents) are piped through it. Similar to gulp-dedupe, but intended to be used when the duplicate has to be removed by a human, rather than automatically.

Usage

It couldn't be simpler -- just add it to your pipe.

var gulp = require('gulp');
var nodupe = require('nodupe');

gulp.task('breakOnDuplicates', function() {
  gulp.src('path/to/*.glob')
    .pipe(nodupe())
    .pipe(gulp.dest('path/to/dist'));
});

Takes no options.