# diff_match_patch

> node module package of the Neil Fraser's diff_match_patch javascript library

Latest version **0.1.1** (published 2011-04-09) · 0 weekly downloads

## Install

```sh
npm install diff_match_patch
pnpm add diff_match_patch
yarn add diff_match_patch
bun add diff_match_patch
```

## Health

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

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support; low quality score; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.1.1 |
| Published | 2011-04-09 |
| First published | 2011-04-09 |
| Weekly downloads | 0 |
| TypeScript types | none |
| Module format | CommonJS |
| Node | * |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 21 |
| Author | Neil Fraser |

## Links

- npm: https://www.npmjs.com/package/diff_match_patch
- Repository: http://github.com/lfborjas/node_diff_match_patch
- npm.io page: https://npm.io/package/diff_match_patch

## Recent versions

- 0.1.1 (latest) — 2011-04-09
- 0.1.0 — 2011-04-09

## README

#diff_match_patch
a re-packaging of the javascript library by Neil Fraser for use in server side javascript

##Installation

    npm install diff_match_patch

##Usage
Just like the original library, you'll be using instances of the diff_match_patch class:
    dmpmod = require('diff_match_patch') 
    var dmp = new dmpmod.diff_match_patch();
    text1= "I'm some text";
    text2= "I'm some other text";
    puts(dmp.diff_main(text1, text2));//print the difference of the texts

(for more detailed documentation, as well as a complete overview of the API, please refer to the original [project site](http://code.google.com/p/google-diff-match-patch/) ).

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