Hi TaoYuan,
Was trying to parse an actual esc/pos command sniffed from usb to the parser.js;
- I get the following error

- 5.js is the space sorted file attached for your reference.
- 4.js is the actual esc/pos command sniffed from usb interface, converted to .js format but not fully space sorted(gets formatting related errors)
https://drive.google.com/drive/folders/1P2VMgDpCs9qhwr8AFaKWq51M5X84E0OI?usp=sharing
I sent the command to TSP100 star printer and able to get a thermal receipt printed successfully.
Any hints if its the latest esc/pos command library thingy which is not supported by the parser?