# vue-jsdiff

> A javascript text differencing implementation with vue

Latest version **1.0.1** (published 2021-02-17) · BSD-2-Clause license · 0 weekly downloads

## Install

```sh
npm install vue-jsdiff
pnpm add vue-jsdiff
yarn add vue-jsdiff
bun add vue-jsdiff
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.1 |
| Published | 2021-02-17 |
| First published | 2021-02-17 |
| Weekly downloads | 0 |
| License | BSD-2-Clause |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 50.4 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | YouXam |
| Maintainers | youxam |
| Keywords | diff, vue, javascript |

## Links

- npm: https://www.npmjs.com/package/vue-jsdiff
- Repository: https://github.com/YouXam/vue-jsdiff
- Homepage: https://github.com/YouXam/vue-jsdiff#readme
- Issues: https://github.com/YouXam/vue-jsdiff/issues
- npm.io page: https://npm.io/package/vue-jsdiff

## Recent versions

- 1.0.1 (latest) — 2021-02-17

## README

# vue-jsdiff

[中文](./README_CN.md) | English

A javascript text differencing implementation for Vue.

Vue-jsdiff does not provide UI, is an encapsulation of [jsdiff](https://github.com/kpdecker/jsdiff). Its API is the same as jsdiff ver. 5.0.0.

 ## Installation

 ```
 npm install vue-jsdiff --save
 ```

 ## Examples

 ```javascript
 import Diff from 'vue-jsdiff'
 export default {
  name: 'example',
  created () {
   console.log(Diff.diffLines('old string', 'new string'))
  }
 }
 ```

 ## API list

See [jsdiff](https://github.com/kpdecker/jsdiff/blob/v5.0.0/README.md#api) 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](./LICENSE)

---
_Source: https://npm.io/package/vue-jsdiff · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
