我有下方代码,想取得files的值作为ctx.body
var result;
var txt = fs.readFileSync("language/zh.txt", "utf-8");
var fontmin = new Fontmin().src(buff).use(
Fontmin.glyph({
text: txt.toString("utf-8"),
})
);
fontmin.run((err, files, stream) => {
console.log(files[0]._contents);
});