gulp-dedupe

0.0.2 • Public • Published

gulp-dedupe Build Status

Check for duplicates in the stream and filter them or throw an error.

Install:

npm install gulp-dedupe --save-dev

Example:

var dedupe = require('gulp-dedupe');
 
...
    .pipe(dedupe()) // Remove duplicates from previous tasks (if any).
    .pipe(concat('bundle.css')) // For example, we need to concat the result without duplicates.
    .pipe(gulp.dest('./build'));

dedupe(options) optionally accepts options object. There are two options:

  • error to emit an error in case of duplicate (false by default).
  • same to emit an error in case duplicates have different contents (true by default).
  • diff to supply duplicates with different contents error (same: true) with actual diff (false by default).

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 0.0.2
    25,241
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 0.0.2
    25,241
  • 0.0.1
    90

Package Sidebar

Install

npm i gulp-dedupe

Weekly Downloads

10,587

Version

0.0.2

License

MIT

Last publish

Collaborators

  • hoho