import TSPL, { toBytes } from 'js-tspl';
const tspl = new TSPL();
tspl.addText('Print test!');
const cmd = toBytes(tspl.toPrint());
import TSPL, { toBytes } from 'js-tspl';
const cmd = toBytes(
new TSPL()
.addText('Print test!')
.addLine()
// toPrint 和 toBytes 会结束调用
.toBytes();
);
import TSPL, { toBytes, encodeGBK } from 'js-tspl';
const tspl = new TSPL();
tspl.addText('Print test!');
const cmd = toBytes(encodeGBK(tspl.toPrint()));