diff-compare

    1.0.2 • Public • Published

    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

    Type Link Description

    v1.0.2 | 2015-07-20

    branch: release/v1.0.2

    Type Link Description
    Added e66bd85 Added badges and changelog to Readme

    v1.0.1 | 2015-07-20

    branch: release/v1.0.1

    Type Link Description
    Added 6aa50a7 Added badges
    Changed 6aa50a7 Refactored build opts keys
    Fixed a371e21 Code Climate CLI issue

    v1.0.0 | 2015-07-14

    branch: release/v1.0.0

    Type Link Description
    Added Initial Release

    License

    Dual License: BSD + ISC

    Install

    npm i diff-compare

    DownloadsWeekly Downloads

    6

    Version

    1.0.2

    License

    BSD + ISC

    Last publish

    Collaborators

    • therebelrobot