Skip to content

Compare two string and generate human-friendly output to stdout

License

Notifications You must be signed in to change notification settings

fengzilong/string-diff-viewer

Repository files navigation

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

License

MIT

About

Compare two string and generate human-friendly output to stdout

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published