print-diff
Prints a pretty diff of two strings.
Installation
npm install --save print-diff
Usage
import { printUnifiedDiff } from 'print-diff'
printUnifiedDiff('Hello\nLinus', 'Hello\nworld')
import { printInlineDiff } from 'print-diff'
printInlineDiff('The quick pink fox', 'The quick brown fox')
API
printUnifiedDiff(actual, expected[, out])
Prints a unified diff.
printInlineDiff(actual, expected[, out])
Prints an inline diff.
License
MIT