Guides
Task-by-task instructions for receipt printers, cash drawers and label printers from Node.js and Electron.
- How to print a receipt from Node.js on an ESC/POS thermal printerPrint receipts from Node.js to Epson and other ESC/POS thermal printers over network, USB or serial, with text styles, tables, barcodes, QR codes, paper cut and cash drawer kick.
- Print receipts from an Electron app to a thermal printerSilent receipt printing from Electron to ESC/POS and Star thermal printers without the OS print dialog, using retail-print-kit in the main process with IPC from the renderer.
- Open a cash drawer from Node.js or ElectronKick a cash drawer connected to a receipt printer from Node.js with one call. Works with Epson ESC/POS, Star and compatible printers over USB, network or serial, including pin 2 and pin 5 drawers.
- Print to a Star TSP100 or TSP143 from Node.jsThe Star TSP100 and TSP143 are raster-only printers that ignore ESC/POS text commands. retail-print-kit renders the receipt to a bitmap and prints it, and also supports Star Line Mode printers such as the TSP650II and mC-Print3.
- Print ZPL, TSPL and EZPL labels from Node.jsBuild shelf, price and barcode labels once and print them on Zebra (ZPL), TSC, Xprinter and Rongta (TSPL) or Godex (EZPL) label printers from Node.js, with an SVG preview and JSON label templates.
- Design receipt and label templates visually, then print them from Node.jsA free browser-based receipt and label designer that exports JSON templates. Bind data with placeholders, loop over line items, add conditions, logos, QR codes and barcodes, and print with retail-print-kit.
- Print QR codes and barcodes on a receipt from Node.jsPrint QR codes and UPC-A, EAN-13, CODE128 and CODE39 barcodes on ESC/POS and Star thermal receipt printers from Node.js, using the printer's native commands with an automatic bitmap fallback.
- Design shelf labels in millimetres and print them on Godex or ZebraKeep shelf and price labels as one JSON design in millimetres, preview it exactly as it prints, and print it on Godex (EZPL) or Zebra (ZPL) label printers from Node.js, Electron or the browser.
- Print a logo or image on a thermal receipt printer from Node.jsConvert a PNG or JPEG logo to a 1-bit bitmap with optional dithering and print it on ESC/POS and Star thermal printers from Node.js, centred and scaled to the paper width.
- Find receipt printers on the network and read their status from Node.jsDiscover ESC/POS printers on the local network, identify the maker and model, and read paper-out, cover-open, cutter-error and cash drawer status from Node.js.
- An alternative to escpos and node-thermal-printer, and how to migrateretail-print-kit is a maintained alternative to the escpos and node-thermal-printer npm packages, with the same method names plus Star, label printers, templates and previews. Migration steps and a comparison.