JS Diff Viewer: Find and view the difference between text strings

Recommend this page to a friend!

  Author Author  
Picture of Manuel Lemos
Name: Manuel Lemos <contact>
Classes: 11 packages by
Country: Portugal Portugal
Age: 54
All time rank: 21 in Portugal Portugal
Week rank: 6 Down1 in Portugal Portugal Equal

  Detailed description   Download Download .zip .tar.gz   Install with Composer Install with Composer  
This object is a library can find and view the difference between two text strings.

It takes two text strings and uses the diff algorithm to find the differences between them and return a list of changes to patch the original string to become the final string

The patch list shows which characters are added or removed to change one string into the other.

The difference between the text strings may be computed in three modes: by character, by word or by line.

The object may also format the strings to view them as HTML showing which characters are added and removed with special insertion and deleted styles.

The example page works as a tool to interactively view the changes as the user changes the texts before and after the changes are applied.

The object can also patch the original string using the patch list to regenerated the changed string.

  Classes of Manuel Lemos  >  JS Diff Viewer  >  Download Download .zip .tar.gz  >  Support forum Support forum (2)  >  Blog Blog (1)  >  RSS 1.0 feed RSS 2.0 feed Latest changes  
Name: JS Diff Viewer
Base name: diff
Description: Find and view the difference between text strings
Version: 1.0.2
JavaScript version: 1.0
License: BSD License
All time users: 282 users
All time rank: 160
Week users: 0 users
Week rank: 4 Equal
  Groups   Rate classes User ratings   Applications   Files Files  

Group folder image HTML HTML generation, editing and parsing View top rated classes
Group folder image Text processing Parsing, manipulating and validating text View top rated classes

  User ratings  
RatingsUtility Consistency Documentation Examples Tests Videos Overall Rank
All time: Perfect (100%) Perfect (100%) - Perfect (100%) - - Sufficient (70%) 13
Month: Not yet rated by the users

  Applications that use this package  
No pages of applications that use this class were specified.

Add link image If you know an application of this package, send a message to the author to add a link here.

  Files folder image Files  
File Role Description
Plain text file diff.js Class Diff object
Accessible without login Plain text file README.md Example Basic instructions
Accessible without login Plain text file testDiff.html Example Example page to show the difference between two texts

Install with Composer Install with Composer - Download Download all files: diff.tar.gz diff.zip
NOTICE: if you are using a download manager program like 'GetRight', please Login before trying to download this archive.