# gulp-dedupe

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

Latest version **0.0.2** (published 2014-10-03) · MIT license · 0 weekly downloads

## Install

```sh
npm install gulp-dedupe
pnpm add gulp-dedupe
yarn add gulp-dedupe
bun add gulp-dedupe
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.0.2 |
| Published | 2014-10-03 |
| First published | 2014-09-22 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Node | >=0.10 |
| Dependencies | 5 |
| Known vulnerabilities | 0 (+2 in 1 direct dependencies) |
| Install scripts | no |
| GitHub stars | 7 |
| Author | Marat Abdullin |
| Maintainers | hoho |
| Keywords | gulpplugin, dedupe, duplicates |

## Links

- npm: https://www.npmjs.com/package/gulp-dedupe
- Repository: https://github.com/hoho/gulp-dedupe
- Issues: https://github.com/hoho/gulp-dedupe/issues
- npm.io page: https://npm.io/package/gulp-dedupe

## Dependencies (5)

- [diff](https://npm.io/package/diff.md) ~1.0.8
- [colors](https://npm.io/package/colors.md) ~1.0.2
- [through](https://npm.io/package/through.md) ~2.3.6
- [gulp-util](https://npm.io/package/gulp-util.md) ~3.0.1
- [lodash.defaults](https://npm.io/package/lodash.defaults.md) ~2.4.1

## Recent versions

- 0.0.2 (latest) — 2014-10-03
- 0.0.1 — 2014-09-22

## README

# gulp-dedupe [![Build Status](https://travis-ci.org/hoho/gulp-dedupe.svg?branch=master)](https://travis-ci.org/hoho/gulp-dedupe)

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


Install:

```sh
npm install gulp-dedupe --save-dev
```


Example:

```js
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).

---
_Source: https://npm.io/package/gulp-dedupe · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
