Skip to content

Instantly share code, notes, and snippets.

@georgeawg
georgeawg / lpstat.js
Created October 11, 2015 00:53
lpstat implemented in JavaScript
var ipp = require("ipp");
var uri = "http://localhost:631";
var data = ipp.serialize({
"operation": 0x4002, //CUPS-GET-PRINTERS
"operation-attributes-tag": {
"attributes-charset": "utf-8",
"attributes-natural-language": "en",
"printer-uri": uri
}