string-diff-viewer
v0.3.7
Published
diff two string
Downloads
8
Readme
string-diff-viewer
Compare two string and generate human-friendly output to stdout (based on git-split-diffs)
Installation
npm i string-diff-viewer
Usage
const { diff, format } = require( 'string-diff-viewer' )
;( async () => {
const diffs = await diff( oldStr, newStr )
console.log( await format( diffs ) )
} )()
Related
- git-split-diffs - GitHub style split diffs in your terminal
License
MIT