An EPL printer drawing library for nodejs
npm install epl
var epl = require('epl')({ device : '/dev/usb/lp0' });
epl.start()
.drawUPC('123456789999', 100 /* height */, 2 /* bar width */, true /* human readable */)
.end()
.print(function (err) {
if (err) {
return console.log(err);
}
console.log('success');
});
dpi
- the dots per inch for printing on the labellabelWidth
- the width of the label in incheslabelHeight
- the height of the label in incheslineSpacing
- how much space between lines in dots per inchdevice
- the output device or file to write lables to when calling theprint
method
var epl = require('epl')({
dpi : 203
, labelWidth : 4
, labelHeight : 6.75
, lineSpacing : 50
, device : '/path/to/device'
});
Start a new label. This must be called before adding anything to your label.
End a label. This must be called when you are finished adding elements to your label.
MIT