thiagoelg / node-printer

Native node.js printer
129 stars 79 forks source link

Get printer status #43

Open TimoKunze opened 2 years ago

TimoKunze commented 2 years ago

How can I get a printer's status, I mean "officially"?

I've noticed that getPrinter actually returns an object that has a "status" property, which is a string-array of printer status flags. But this property is not part of the PrinterDetails type. Is it only supported on Windows and therefore not part of the type? What is the proper way to retrieve a printer's status?

Actually I would also need the attributes property that is also returned by getPrinter, but not defined by PrinterDetails.