Skip to content

Latest commit

 

History

History
45 lines (29 loc) · 1.95 KB

printing.md

File metadata and controls

45 lines (29 loc) · 1.95 KB

ReceiptPrinterEncoder

Formally known as EscPosEncoder, StarPrntEncoder and ThermalPrinterEncoder


Create a set of commands that can be send to any receipt printer that supports ESC/POS, StarLine or StarPRNT.


Printing receipts

The first thing to mention is that this library does in fact not have any method to send the encoded data to the printer. This library is only intended for encoding the data, which allows you to use various libraries to send data to the printer, making it extremely flexible and to be used in many environments.

But we do have a number of sister libraries which will help you print your receipt in the browser or in Node.


Printing in the browser

If you use a Chromium-based browser that supports APIs such as WebUSB, WebSerial or WebBluetooth you can send data directly to the printer from a web application.

Look at the following libraries:


Printing from Node

If you use Node we have created the following libraries to send data to you receipt printer: