summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/tools/scripts/id2path.js
blob: 39b8d644bc533bd4804e9a47849d7f80c46deca1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12

var fs = require("fs")
,   pth = require("path")
,   id = process.argv[2]
;

if (!id) {
    console.log("Missing ID");
    process.exit(1);
}

console.log(JSON.parse(fs.readFileSync(pth.join(__dirname, "id2path.json"), "utf8"))[id]);