项目作者: kemokemo

项目描述 :
This tool compares old and new versions of html and generates color-coded html in a diff format.
高级语言: Go
项目地址: git://github.com/kemokemo/htmldiff.git
创建时间: 2020-06-21T02:19:07Z
项目社区:https://github.com/kemokemo/htmldiff

开源协议:

下载


htmldiff

License: MIT test-and-build

This tool compares old and new versions of html and generates color-coded html in a diff format.

htmldiff-samle

Install

Homebrew

  1. brew install kemokemo/tap/htmldiff

Scoop

First, add my scoop-bucket.

  1. scoop bucket add kemokemo-bucket https://github.com/kemokemo/scoop-bucket.git

Next, install this app by running the following.

  1. scoop install htmldiff

Binary

Get the latest version from the release page, and download the archive file for your operating system/architecture. Unpack the archive, and put the binary somewhere in your $PATH.

Usage

  1. $ htmldiff -h
  2. Usage: htmldiff [<option>...] <old html> <new html>
  3. -h display help
  4. -nh
  5. true: use new header, false: use old header (default true)
  6. -o string
  7. output filename (default "diff.html")j

When comparing two html files, you need to choose which header to use. By default, it uses the new header. To use the header of the old html file, set -nh=false flag. ( -nh means “use new header”. )

Example

  1. htmldiff -o=diff/index.html v1/index.html v2/index.html

If you use the header of v1/index.html, set -nh=false flag.

  1. htmldiff -o=diff/index.html -nh=false v1/index.html v2/index.html

License

MIT

Author

kemokemo