Visual Diff In Java

  1. Visual Diff Javascript

Julian Robichaux is a software engineer focused on Eclipse and Java. Julian has been a professional programmer in the private sector since the early nineties. JMeld is a visual diff and merge tool. It is build to be fast with large files and runs on any operating system. Mar 19, 2016  Follow Visual diff and merge tool. Visual diff and merge tool Web Site. Java Swing Programming Language Java Registered 2006-03-06 Similar Business Software. A cross-platform file diff and directory diff Tool. Also contains an SCM project. Tool to view and extract contents of a Windows Installer (.msi) file.

Diff & patch JavaScript objects

Java

Live Demo

  • min+gzipped ~ 16KB
  • browser and server (/dist folder with bundles for UMD, commonjs, or ES modules)
  • (optionally) uses google-diff-match-patch for long text diffs (diff at character level)
  • smart array diffing using LCS, IMPORTANT NOTE: to match objects inside an array you must provide an objectHash function (this is how objects are matched, otherwise a dumb match by position is used). For more details, check Array diff documentation
  • reverse a delta
  • unpatch (eg. revert object to its original state using a delta)
  • simplistic, pure JSON, low footprint delta format
  • multiple output formatters:
    • html (check it at the Live Demo)
    • annotated json (html), makes the JSON delta format self-explained
    • console (colored), try running ./node_modules/.bin/jsondiffpatch left.json right.json
    • write your own! check Formatters documentation
  • BONUS: jsondiffpatch.clone(obj) (deep clone)

Supported platforms

  • Any modern browser and IE8+

And you can test your current browser visiting the test page.

Visual Diff In Java
  • Node.js v4.8+

Usage

Array diffing:

For more example cases (nested objects or arrays, long text diffs) check test/examples/

If you want to understand deltas, see delta format documentation

Installing

NPM

This works for node, or in browsers if you already do bundling on your app

browser

Diff

In a browser, you could load directly a bundle in /dist, eg. /dist/jsondiffpatch.umd.js.

Visual Diff Javascript

Options

Visual Diff

To see formatters in action check the Live Demo.

For more details check Formatters documentation

Console

Plugins

diff(), patch() and reverse() functions are implemented using Pipes & Filters pattern, making it extremely customizable by adding or replacing filters on a pipe.

Check Plugins documentation for details.

Comments are closed.