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]);