# gulp-prettydiff

> Transform Gulp streams with Pretty Diff.

Latest version **2.0.0** (published 2018-02-06) · MIT license · 0 weekly downloads

## Install

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

## Health

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

Positive: no vulnerabilities.

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

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 2.0.0 |
| Published | 2018-02-06 |
| First published | 2015-06-25 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 4 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 3 |
| Author | C. Spencer Beggs |
| Maintainers | spencerbeggs |
| Keywords | Gulp, Pretty Diff |

## Links

- npm: https://www.npmjs.com/package/gulp-prettydiff
- Repository: https://github.com/spencerbeggs/gulp-prettydiff
- Homepage: https://github.com/spencerbeggs/gulp-prettydiff#readme
- Issues: https://github.com/spencerbeggs/gulp-prettydiff/issues
- npm.io page: https://npm.io/package/gulp-prettydiff

## Dependencies (4)

- [gulp-util](https://npm.io/package/gulp-util.md) ^3.0.8
- [map-stream](https://npm.io/package/map-stream.md) 0.0.7
- [prettydiff2](https://npm.io/package/prettydiff2.md) ^2.2.7
- [lodash.clone](https://npm.io/package/lodash.clone.md) ^4.5.0

## Recent versions

- 2.0.0 (latest) — 2018-02-06
- 1.0.1 — 2015-06-25
- 1.0.0 — 2015-06-25

## README

# Gulp Pretty Diff

This plugin provides a simple interface for Gulp to transform files with [Pretty Diff](http://prettydiff.com/). You can pass [any option supported by the Pretty Diff API](http://prettydiff.com/documentation.xhtml#function_properties) as a property to the options object, except for `source` which is automatically converted from the stream into a UTF-8 string for you.

```js
var gulp = require("gulp");
var gulpPrettyDiff = require("gulp-prettydiff");

gulp.src("./**/*.css")
    .pipe(gulpPrettyDiff({
        lang: "css",
        mode: "beautify"
    }))
    .pipe(gulp.dest("./"))
```

NOTE: Pretty Diff itself does not support streaming. This plugin just consumes a Vinyl stream, passes its file objects through Pretty Diff and then returns a stream.

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