Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

vue-diff-match-patch

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-diff-match-patch

a vuejs wrapper for diff-match-patch

  • 0.0.1
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

Vue-Diff-Match-Patch

Installation

// Using npm
npm install vue-diff-match-patch
// Using Yarn
yarn add vue-diff-match-patch

Examples

Below you will find some example usage:

Bar Chart

<template>
  <div>
      <h2>Diff</h2>
      <diff :left="text1" :right='text2'></diff>
      <h2>Line Diff</h2>
      <line-diff :left="text1" :right='text2'></line-diff>
      <h2>Semantic Diff</h2>
      <sem-diff :left="text1" :right='text2'></sem-diff>
      <h2>Processing Diff</h2>
      <processing-diff :left="text1" :right='text2'></processing-diff>
  </div>
</template>

<script>
import Diff from '@/components/Diff'
import LineDiff from '@/components/LineDiff'
import SemanticDiff from '@/components/SemanticDiff'
import ProcessingDiff from '@/components/ProcessingDiff'

export default {
  name: 'Demo',
  data: function () {
    return {
      text1: 'I am the very model of a modern Major-General, \n I\'ve information vegetable, animal, and mineral\n',
      text2: 'I am the very model of a cartoon individual,\n My animation\'s comical, unusual, and whimsical\n'
    }
  },
  components: {
    'diff': Diff,
    'line-diff': LineDiff,
    'sem-diff': SemanticDiff,
    'processing-diff': ProcessingDiff
  }
}
</script>

FAQs

Package last updated on 31 Mar 2018

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc