QZ Tray & Mike42/escpos-php





var toprint = data.replace("intent:base64,","");
toprint = toprint.replace("#Intent;scheme=rawbt;package=ru.a402d.rawbtprinter;end;","");
var config = qz.configs.create(printerName);
var printData = [{
	type: 'raw',
	format: 'base64',
	data: toprint
}];   
qz.print(config, printData).catch(displayError);


https://github.com/qzind/tray