JSPM

another-word-diff

1.0.2
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 17
  • Score
    100M100P100Q48674F
  • License Apache-2.0

Package Exports

  • another-word-diff

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (another-word-diff) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

diff-match-patch

Wrapper around https://github.com/google/diff-match-patch that allows for word based diff.

The word boundary is defined by the regex /[A-Za-z0-9_]/

Installation

npm install word-diff-match-patch

Module exports :

characterDiff(text1, text2) → diffs
wordDiff(text1, text2) → diffs
characterDiff(text1, text2) → diffs
prettyHtml_Character(text1, text2) → formatted string
prettyHtml_Word(text1, text2) → formatted string

License

http://www.apache.org/licenses/LICENSE-2.0