Bairdy
Bairdy15mo ago

How do I send a simple text file to the printer?

Hello. I am looking for an example of how to send a simple text file tot eh printer in Deno. Is this possible?
2 Replies
ioB
ioB15mo ago
It is definitely possible, but afaik you'd need to find out what protocols your printer works with and implement one of them. From a cursory look at /x it doesn't seem anyone has wanted to do this yet.
ioB
ioB15mo ago
on a second look, you should be able to do this through maybe https://www.npmjs.com/package/ipp being imported as npm:ipp or perhaps https://esm.sh/ipp.
npm
ipp
Internet Printing Protocol (IPP) for nodejs. Latest version: 2.0.1, last published: 5 years ago. Start using ipp in your project by running npm i ipp. There are 12 other projects in the npm registry using ipp.