thedesk/app/js/lang/json5Tojson.js
2019-08-29 01:20:47 +09:00

3 lines
201 B
JavaScript

const JSON5 = require('json5')
const fs = require("fs")
fs.writeFileSync("main.json", JSON.stringify(JSON5.parse(fs.readFileSync("lang." + process.argv[2] + ".js", 'utf8').replace("var lang = ", ""))))