espos-usb-mc

1.0.2 • Public • Published

espos-usb-mc

My temp espos-usb solution

If you use usb as an adapter :

  • On Linux, you'll need libudev to build libusb.
  • On Ubuntu/Debian: sudo apt-get install build-essential libudev-dev.
  • On Windows, Use Zadig to install the WinUSB driver for your USB device.

Otherwise you will get LIBUSB_ERROR_NOT_SUPPORTED when attempting to open devices.

USB(vid, pid)

const escpos = require('escpos');
escpos.USB = require('escpos-usb');

const usbDevice = new escpos.USB(0x01, 0xff);

vid(Vendor Id) and pid (Product Id) can be checked with the lsusb command or escpos.USB.findPrinter() method.

Versions

Current Tags

VersionDownloads (Last 7 Days)Tag
1.0.214latest

Version History

VersionDownloads (Last 7 Days)Published
1.0.214
1.0.10
1.0.00

Package Sidebar

Install

npm i espos-usb-mc

Weekly Downloads

14

Version

1.0.2

License

ISC

Unpacked Size

6.76 kB

Total Files

3

Last publish

Collaborators

  • mln4you