npm

Need private packages and team management tools?Check out npm Orgs. »

diff-mark

2.3.1 • Public • Published

diff-mark

Build Status NPM version

A variant of Diffmark implemented in JavaScript.

Some important difference to the original C# version:

  • Diff strings are strictly validated before marking.
  • The derived diff strings are less ambiguous and more legible.

Demo

http://jakwings.github.io/diff-mark/

Usage

You can install it via npm install diff-mark, or just include the script diffmark.js in your web pages.

var diffmark = diffmark || require('diff-mark');
 
diffmark.diff('grow', 'grew');  // -> '--ew'
diffmark.mark('grow', 'ing');   // -> 'growing'

Specification: https://github.com/TheBerkin/Diffmark

install

npm i diff-mark

Downloadsweekly downloads

7

version

2.3.1

license

MIT

homepage

github.com

repository

Gitgithub

last publish

collaborators

  • avatar
Report a vulnerability