I need to find a way of printing receipts in javascript from Electron. I already tried QZ-TRAY but it doesn't work because of Electron. I also tried node-thermal-printer but it also never worked for me. Does anybody here know how you can print receipts without asking the user in javascript (Electron)?
EDIT
Qz-tray offer a solution that is pretty good and hard to beat.
If you have the error RSVP is not defined
you need to enable native javascript promises with this line.
qz.api.setPromiseType(resolver => new Promise(resolver));
Quoting the relevant comments...
Posting as asolution as the comments suggest it worked. Credits to @gilbert-gabriel for the help.
The RSVP promises are enabled by default, but native JS promises are supported via:
A more comprehensive example: