so i am trying to print stuff with my thermal printer with escpos.
whenever i run the file nothing happens. there are no errors.
my code:
const escpos = require('escpos');
escpos.USB = require('escpos-usb');
const device = new escpos.USB(0x0519, 0x0003);
const options = { encoding: "GB18030" /* default */ }
// encoding is optional
const printer = new escpos.Printer(device, options);
device.open(function(error){
printer
.text('The quick brown fox jumps over the lazy dog')
.cut()
.close();
});