escpos-serialport

3.0.0-alpha.4 • Public • Published

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.

Readme

Keywords

Package Sidebar

Install

npm i escpos-serialport

Weekly Downloads

111

Version

3.0.0-alpha.4

License

MIT

Unpacked Size

3.95 kB

Total Files

4

Last publish

Collaborators

  • song940