Skip to content

Plugin for adding a diff method to a 'base' application. (not ready for use!)

License

Notifications You must be signed in to change notification settings

base-repos/base-diff

Repository files navigation

base-diff NPM version Build Status

Plugin for adding a diff method to a 'base' application.

Install

Install with npm

$ npm i base-diff --save

Usage

Heads up! This isn't quite ready for use. It's close but needs to be documented and cleaned up first!

verb is used in this example, but the plugin can be registered with any application that uses base-methods.

var diff = require('base-diff');
var verb = require('verb'); 
var app = verb();
app.use(diff());

gulp usage

var diff = require('base-diff');
var through = require('through2');
var gulp = require('gulp');

gulp.task('diff', function () {
  return gulp.src('*.txt')
    .pipe(diff.file('diffChars'))
    .pipe(somePlugin())
    .pipe(diff.file()) // automatically shows the diff
    .pipe(gulp.dest('.'));
});

Related projects

  • assemble: Static site generator for Grunt.js, Yeoman and Node.js. Used by Zurb Foundation, Zurb Ink, H5BP/Effeckt,… more | homepage
  • base-methods: Starter for creating a node.js application with a handful of common methods, like set, get,… more | homepage
  • micromatch: Glob matching for javascript/node.js. A drop-in replacement and faster alternative to minimatch and multimatch. Just… more | homepage
  • verb: Documentation generator for GitHub projects. Verb is extremely powerful, easy to use, and is used… more | homepage

Running tests

Install dev dependencies:

$ npm i -d && npm test

Contributing

Pull requests and stars are always welcome. For bugs and feature requests, please create an issue.

Author

Jon Schlinkert

License

Copyright © 2015 Jon Schlinkert Released under the MIT license.


This file was generated by verb on December 14, 2015.

About

Plugin for adding a diff method to a 'base' application. (not ready for use!)

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Sponsor this project

  •  
  •  

Packages

No packages published