node-thermal-printer
Version:
Print on Epson, Star, Tranca, Daruma, Brother and Custom thermal printers with Node.js
53 lines (42 loc) • 1.19 kB
JavaScript
class PrinterType {
constructor () {
// console.error('Constructor not set');
}
beep () {
console.error(new Error("'beep' not implemented yet"));
return null;
}
printQR (str, settings) {
console.error(new Error("'printQR' not implemented yet"));
return null;
}
pdf417 (data, settings) {
console.error(new Error("'pdf417' not implemented yet"));
return null;
}
code128 (data, settings) {
console.error(new Error("'code128' not implemented yet"));
return null;
}
maxiCode (data, settings) {
console.error(new Error("'maxiCode' not implemented yet"));
return null;
}
printBarcode (data, type, settings) {
console.error(new Error("'printBarcode' not implemented yet"));
return null;
}
async printImage (image) {
console.error(new Error("'printImage' not implemented yet"));
return null;
}
printImageBuffer (width, height, data) {
console.error(new Error("'printImageBuffer' not implemented yet"));
return null;
}
setLineSpacing (spacing) {
console.error(new Error("'setLineSpacing' not implemented for this printer type"));
return null;
}
}
module.exports = PrinterType;