rus-diff

JSON →
library 1.1.0 ·javascript maintenance
verified Jun 5, 2026

A MongoDB-compatible JSON diff library that computes differences between two JSON objects and produces delta objects using MongoDB operators like $set, $unset, $rename, and $inc. Version 1.1.0 currently stable; low release cadence (last update 2015). Key differentiators: output directly usable with MongoDB collection.update(), supports incremental diffs via $inc option, and provides apply() to apply diffs without manual traversal. Suitable for syncing JSON documents or generating MongoDB update commands.