3.0.0-alpha.4 • Published 4 years ago

escpos-adapter v3.0.0-alpha.4

Weekly downloads
2
License
MIT
Repository
-
Last release
4 years ago

Adapter

Constructors

You can choose your adapter type as USB, Serial, Bluetooth, Network, or Console.

Methods

open(function callbackerr)

Claims the current device USB (or other device type), if the printer is already in use by other process this will fail and return the error parameter.

By default, the USB adapter will set the first printer found .

Triggers the callback function when done.

close(function callback)

Closes the current device and releases its USB interface.