Print

node v4.9.1
version: 0.0.1
endpointsharetweet
var printer = require('node-thermal-printer'); printer.init({ type: 'epson', interface: '/dev/usb/lp0', width: 48, characterSet: 'SLOVENIA', ip: '192.168.77.22', port: '9100' }); process.on('uncaughtException', function (err) { console.log(err); }); printer.beep(); printer.alignCenter(); printer.print("First line."); printer.newLine(); printer.drawLine(); printer.newLine(); printer.print("Second line."); printer.setTextDoubleHeight(); printer.println("Double Height"); printer.cut(); printer.execute(function(err){ if (err) { console.error("Print failed", err); } else { console.log("Print done"); } }); printer.clear();
Loading…

no comments

    sign in to comment