UNPKG

node-thermal-printer

Version:

Print on Epson, Star, Tranca, Daruma, Brother and Custom thermal printers with Node.js

16 lines (12 loc) 378 B
const ThermalPrinter = require('../node-thermal-printer').printer; const Types = require('../node-thermal-printer').types; async function printImage () { const printer = new ThermalPrinter({ type: Types.EPSON, interface: process.argv[2], }); await printer.printImage('./assets/olaii-logo-black-small.png'); printer.cut(); printer.execute(); } printImage();