@gauravbordoloi/escpos-serialport
v4.0.0
Published
serialport adapter for escpos
Downloads
1
Readme
Serial("port", options)
const escpos = require('escpos');
escpos.SerialPort = require('escpos-serialport');
const serialDeviceOnWindows = new escpos.SerialPort('COM10');
const serialDeviceOnLinux = new escpos.SerialPort('/dev/usb/lp0', {
baudRate: 14400,
stopBit: 2
});
Check the serialport package documentation for more options.