You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
10 lines
319 B
10 lines
319 B
const fs = require("fs");
|
|
|
|
if (process.argv.length < 4) throw new Error("Missing source and target file arguments");
|
|
|
|
const sourceFile = fs.readFileSync(process.argv[2], 'utf8');
|
|
const targetFile = fs.readFileSync(process.argv[3], 'utf8');
|
|
|
|
if (sourceFile !== targetFile) {
|
|
throw new Error("Files do not match");
|
|
}
|
|
|