1.0.2 • Published 9 years ago

diff-compare v1.0.2

Weekly downloads
3
License
BSD + ISC
Repository
github
Last release
9 years ago

diff-compare

NPM NPM

Join the chat at https://gitter.im/therebelrobot/diff-compare js-standard-style Dependency Status semver changelog

A javascript library for diffing text and generating corrected and annotated text. This is a fork and derivative of ForbesLindesay/jsdifflib, which is in turn a fork of cemerick/jsdifflib

Installation

npm install diff-compare

Overview

diff-compare is a Javascript library that provides:

  1. a partial reimplementation of Python’s difflib module (specifically, the SequenceMatcher class)
  2. rather than a view generator, as the previous modules have made, this provides a corrected list of items, language agnostic

Example

var diff = require('diff-compare');

var adjustedText = diff.build({
  baseText: baseText,
  newText: newText
})

Changelog

Unreleased

branch: master

TypeLinkDescription

v1.0.2 | 2015-07-20

branch: release/v1.0.2

TypeLinkDescription
Addede66bd85Added badges and changelog to Readme

v1.0.1 | 2015-07-20

branch: release/v1.0.1

TypeLinkDescription
Added6aa50a7Added badges
Changed6aa50a7Refactored build opts keys
Fixeda371e21Code Climate CLI issue

v1.0.0 | 2015-07-14

branch: release/v1.0.0

TypeLinkDescription
AddedInitial Release

License

Dual License: BSD + ISC