escpos-adapter

3.0.0-alpha.4 • Public • Published

Adapter

Constructors

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

Methods

open(function callback[err])

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.


Readme

Keywords

Package Sidebar

Install

npm i escpos-adapter

Weekly Downloads

8

Version

3.0.0-alpha.4

License

MIT

Unpacked Size

2.37 kB

Total Files

4

Last publish

Collaborators

  • song940