vue-jsdiff

1.0.1 • Public • Published

vue-jsdiff

中文 | English

A javascript text differencing implementation for Vue.

Vue-jsdiff does not provide UI, is an encapsulation of jsdiff. Its API is the same as jsdiff ver. 5.0.0.

Installation

npm install vue-jsdiff --save

Examples

import Diff from 'vue-jsdiff'
export default {
 name: 'example',
 created () {
  console.log(Diff.diffLines('old string', 'new string'))
 }
}

API list

See jsdiff for detailed documents.

  1. diffChars
  2. diffWords
  3. diffWordsWithSpace
  4. diffLines
  5. diffTrimmedLines
  6. diffSentences
  7. diffCss
  8. diffJson
  9. diffArrays
  10. structuredPatch
  11. createTwoFilesPatch
  12. createPatch
  13. applyPatch
  14. applyPatches
  15. parsePatch
  16. merge
  17. convertChangesToDMP
  18. convertChangesToXML
  19. canonicalize

Other

Vue-jsdiff has no plan for constant maitaining.

License

Using BSD License

Versions

Current Tags

VersionDownloads (Last 7 Days)Tag
1.0.196latest

Version History

VersionDownloads (Last 7 Days)Published
1.0.196

Package Sidebar

Install

npm i vue-jsdiff

Weekly Downloads

96

Version

1.0.1

License

BSD-2-Clause

Unpacked Size

51.7 kB

Total Files

22

Last publish

Collaborators

  • youxam