html-diff
Diffs folders of .html files to make sure they are the same
Last updated 7 years ago by chriswren .
MIT · Original npm · Tarball · package.json
$ cnpm install html-diff 
SYNC missed versions from official npm registry.

html-diff

Diff folders of html files to make sure they are the same

NPM version Dependency Status

Installation

npm install --save html-diff

html-diff([folders])

folders

Type: Array of Objects

Array of folder objects to diff. Each object must contain the path property to read files from and name property to print when diffing.

Sample Usage

Here is an example using html-diff to ensure that the outputs from Jade and EJS templates produce the same html:

var diff = require('html-diff');

diff([{
  path: 'EJSOutputFolder',
  name: 'EJS'
}, {
  path: 'JadeOutputFolder',
  name: 'Jade'
}]);

This will log any differences between html file paths in the folders as well as differences in the content of html files which have the same path.

Changelog

0.0.1 - Initial release

Current Tags

  • 0.0.4                                ...           latest (7 years ago)

4 Versions

  • 0.0.4                                ...           7 years ago
  • 0.0.3                                ...           7 years ago
  • 0.0.2                                ...           7 years ago
  • 0.0.1                                ...           7 years ago
Maintainers (1)
Downloads
Today 0
This Week 1
This Month 1
Last Day 0
Last Week 0
Last Month 0
Dependencies (5)
Dev Dependencies (10)
Dependents (0)
None

Copyright 2014 - 2016 © taobao.org |