Introducing difflet, a handy node.js module for computing pretty object diffs! Just plug in some initial options and the objects you want to compare! var difflet = require('difflet'); var s = difflet({ indent : 2, comment : true }).compare( { z : [6,7], a : 'abcdefgh', b : [ 31, 'xxt' ] }, { x : 5, a : 'abdcefg', b : [ 51, 'xxs' ] } ); console.log(s); and you'll get a colored and annotated object