New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

vue-jsdiff

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

vue-jsdiff

A javascript text differencing implementation with vue

latest
Source
npmnpm
Version
1.0.1
Version published
Maintainers
1
Created
Source

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.

  • diffChars
  • diffWords
  • diffWordsWithSpace
  • diffLines
  • diffTrimmedLines
  • diffSentences
  • diffCss
  • diffJson
  • diffArrays
  • structuredPatch
  • createTwoFilesPatch
  • createPatch
  • applyPatch
  • applyPatches
  • parsePatch
  • merge
  • convertChangesToDMP
  • convertChangesToXML
  • canonicalize

Other

Vue-jsdiff has no plan for constant maitaining.

License

Using BSD License

Keywords

diff

FAQs

Package last updated on 17 Feb 2021

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts