Browse our Products
If so you can download any of the below versions for testing. The product will function as normal except for an evaluation limitation. At the time of purchase we provide a license file via email that will allow the product to work in its full capacity. If you would also like an evaluation license to test without any restrictions for 30 days, please follow the directions provided here.
If you experience errors, when you try to download a file, make sure your network policies (enforced by your company or ISP) allow downloading ZIP and/or MSI files.
Powerful document comparison API for Node.js (powered by Java) to diff 50+ document and image formats, including Microsoft Office and OpenDocument types, PDF documents, and common raster images (TIFF, JPEG, GIF, PNG, BMP). Retrieve changes in a convenient format with line-by-line comparison of content, paragraphs, characters, styles, shapes, and positions.
See the full list of supported formats.
To install the package, check the System Requirements and Installation documentation topics for platform-specific instructions.
Here are some typical use cases:
This example shows how to compare two DOCX files and save a diff file.
'use strict';
const groupdocs = require('@groupdocs/groupdocs.comparison');
// Apply license, required for non-evaluation usage
const license = new groupdocs.License();
license.setLicense("GroupDocs.Comparison.lic");
// Compare documents
const comparer = new groupdocs.Comparer("proposal_v1.docx");
comparer.add("proposal_v2.docx");
comparer.compare("proposal_diff.docx");
// Exit
process.exit(0);
The output proposal_diff.docx file shows changes made in the second version of the file and lists all the changes on an additional summary page.
'use strict';
const groupdocs = require('@groupdocs/groupdocs.comparison');
// Apply license, required for non-evaluation usage
const license = new groupdocs.License();
license.setLicense("GroupDocs.Comparison.lic");
// Compare documents
const comparer = new groupdocs.Comparer("proposal_v1.docx");
comparer.add("proposal_v2.docx");
comparer.compare();
// Print out changes
const changes = comparer.getChanges();
for (let index = 0; index < changes.length; index++) {
const change = changes[index];
const page = change.getPageInfo().getPageNumber();
const type = change.getType().name();
const text = (change.getText() || "").trim();
const src = (change.getSourceText() || "").trim();
const tgt = (change.getTargetText() || "").trim();
console.log(`[Page ${page}] ${type} "${text}", "${src}" -> "${tgt}"`);
}
// Exit
process.exit(0);
This code example compares two DOCX files and outputs details on changes, such as page, change type, source, and changed text. See the expected console output:
[Page 3] INSERTED "7", "$12 per user/month" -> "$7 per user/month"
[Page 3] DELETED "12", "$12 per user/month" -> "$7 per user/month"
[Page 3] DELETED "5", "$25 per user/month" -> "$20 per user/month"
[Page 3] INSERTED "0", "$25 per user/month" -> "$20 per user/month"
This code example shows how to accept or reject changes between two versions of the same document.
'use strict';
const java = require('java');
const groupdocs = require('@groupdocs/groupdocs.comparison');
// Apply license, required for non-evaluation usage
const license = new groupdocs.License()
license.setLicense("GroupDocs.Comparison.lic");
// Compare documents
const comparer = new groupdocs.Comparer("proposal_v1.docx");
comparer.add("proposal_v2.docx");
comparer.compare();
// Accept all chanes
const changes = comparer.getChanges();
for (let index = 0; index < changes.length; index++) {
const change = changes[index];
change.setComparisonAction(groupdocs.ComparisonAction.ACCEPT); // or REJECT
}
// Apply changes and save result
const changeArray = java.newArray('com.groupdocs.comparison.result.ChangeInfo', changes);
const saveOptions = new groupdocs.ApplyChangeOptions(changeArray);
comparer.applyChanges("proposal_accepted_changes.docx", saveOptions);
// Exit
process.exit(0);
This example accepts all the changes and saves the output file with all changes accepted.
GroupDocs.Comparison GroupDocs.Total Conholdate Conholdate.Total Document-Automation Compare-Documents Compare-Files Document-Comparer File-Comparison-API PDF-Comparer Word-Comparison-Library Excel-Comparison-Library PowerPoint-Comparison-API Image-Comparer HTML-Comparer
Download the offline package `groupdocs-groupdocs.comparison-25.11.0.tgz`. This .tgz package contains the same build that is available on NPM and can be installed locally in environments without internet access.
Added: 20/11/2025
Downloads:
File Size: 39.98KB
This contains the NPM package of GroupDocs.Comparison for Node.js via Java
Added: 10/6/2025
Downloads:
File Size: 52.5KB
This contains the NPM package of GroupDocs.Comparison for Node.js via Java
Added: 5/7/2024
Downloads:
File Size: 40.52KB
This contains the NPM package of GroupDocs.Comparison for Node.js via Java
Added: 7/12/2023
Downloads:
File Size: 39.46KB