const fs = require("fs"); const luamin = require("luamin"); const haxeOutput = fs.readFileSync(0, { encoding: "utf8" }); const minified = luamin.minify(haxeOutput); fs.writeFileSync(1, minified);