cli-diff
A diff utility with highlighted output for CLIs
cli-diff
makes it easy for your CLI or script to output a highlighted diff.
It doesn’t support syntax highlighting in the diff right now,
but it does support highlighting line-by-line.
Table of Contents
Install
$ yarn add cli-diff$ # or npm:$ npm install cli-diff
Usage
// or, if you prefer: console.logdiff'hello', 'goodbye'/* output:@@ -1,1 +1,1 @@-hello\ No newline at end of file+goodbye*/ console.log diff , /* output:--- old.txt+++ new.txt@@ -1,2 +1,1 @@-hello-world+Hello, world!*/
Maintainers
Contribute
PRs accepted.
Small note: If editing the README, please conform to the standard-readme specification.
License
MIT © 2018 Jed Fox