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.
- About ReceiptPrinterEncoder
- Usage and installation
- Configuration options
- Handling text
- Commands for creating receipts
- Printing receipts
- Migrating from version 2 to version 3
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.
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:
If you use Node we have created the following libraries to send data to you receipt printer:
- NetworkReceiptPrinter – use this if you want to print directly to a network printer.
- SystemReceiptPrinter – use this if you want to print to a printer that has been installed on your system.