# diff_match_patch **Repository Path**: mirrors_alexgorbatchev/diff_match_patch ## Basic Information - **Project Name**: diff_match_patch - **Description**: Repackaging of Neil Fraser's world famous diff_match_patch as a node.js module / component - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2020-09-24 - **Last Updated**: 2026-07-11 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## 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` or `component install marcelklehr/diff_match_patch` ##Usage 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/) ). ## Legal Copyright 2006 Google Inc. Licensed under the Apache License, Version 2.0