Skip to content

Instantly share code, notes, and snippets.

@lukashavrlant
Created June 17, 2016 11:46
Show Gist options
  • Save lukashavrlant/1888c5103aba96e19bf2a8c3160b8b2d to your computer and use it in GitHub Desktop.
Save lukashavrlant/1888c5103aba96e19bf2a8c3160b8b2d to your computer and use it in GitHub Desktop.
var deep = require('json-diff')
var oldConfig = require(process.argv[2]);
var newConfig = require(process.argv[3]).localConfigurationKeys;
var x = deep.diffString(oldConfig, newConfig);
console.log(x);
{
"name": "test",
"version": "1.0.0",
"description": "",
"main": "index.js",
"dependencies": {
"json-diff": "^0.3.1"
},
"devDependencies": {},
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
},
"author": "",
"license": "ISC"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment