Tried both <filename> and file:///full/path/to/<filename> and neither works.
➜ Desktop npx json-diff-cli diff file:///Users/myuser/Desktop/file1.json file:///Users/myuser/Desktop/file2.json
npx: installed 106 in 15.851s
Error: connect ECONNREFUSED 127.0.0.1:80