We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d6a73f7 commit 6fbab1cCopy full SHA for 6fbab1c
bin/jsondiffpatch
@@ -1,19 +1,19 @@
1
#!/usr/bin/env node
2
3
-const jsondiffpatch = require('..');
+const diffpatch = require('..');
4
5
const fs = require('fs');
6
7
const fileLeft = process.argv[2];
8
const fileRight = process.argv[3];
9
10
if (!fileLeft || !fileRight) {
11
- console.log('\n USAGE: jsondiffpatch left.json right.json');
12
- return;
+ console.log('\n USAGE: diffpatch left.json right.json');
+ process.exit(1);
13
}
14
15
const left = JSON.parse(fs.readFileSync(fileLeft));
16
const right = JSON.parse(fs.readFileSync(fileRight));
17
18
-const delta = jsondiffpatch.diff(left, right);
19
-jsondiffpatch.console.log(delta);
+const delta = diffpatch.diff(left, right);
+diffpatch.console.log(delta);
0 commit comments