Socket
Socket
Sign inDemoInstall

gulp-diff-4

Package Overview
Dependencies
41
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    gulp-diff-4

Gulp 4 drop-in replacement for gulp-diff - Show diffs for files in the stream against those in a target directory


Version published
Weekly downloads
1
decreased by-90%
Maintainers
1
Install size
1.72 MB
Created
Weekly downloads
 

Readme

Source

gulp-diff-4

Gulp-diff migrated to support Gulp 4.x task to diff files in the stream against a destination.

Usage

An example jsbeautify verification task to show diffs from js-beautify

'use strict';

var gulp = require('gulp');
var prettify = require('gulp-jsbeautifier');
var diff = require('gulp-diff');

gulp.task('js-beautify', function() {
  return gulp.src([
      '!node_modules/**/*.js',
      '**/*.js'
    ])
    .pipe(prettify({
      config: '.jsbeautifyrc',
      mode: 'VERIFY_AND_WRITE'
    }))
    .pipe(diff(/* 'target directory to diff against', defaults to diff against original source file */))
    // emit an error on finding diffs
    .pipe(diff.reporter({ fail: true }));
});

Keywords

FAQs

Last updated on 23 May 2019

Did you know?

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc