escpos-serialport
v3.0.0-alpha.4
Published
serialport adapter for escpos
Downloads
449
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.