No description or website provided.
JavaScript
Permalink
Failed to load latest commit information.
.gitignore Initial commit Aug 28, 2012
CHANGELOG * Change args management. Sep 20, 2012
LICENCE Update Licence Sep 3, 2012
README.md This repository is not maintained any more. Feb 2, 2014
job.js Add Job element. Aug 29, 2012
package.json Tag 1.0.3 Sep 20, 2012
printer.js * Change args management. Sep 20, 2012

README.md

node-printer-lp

This repository is not maintained any more.

A tool to print document or data. Based on "lp" binary.

Quick Examples

var printer = require ("printer-lp");
var options = {
    destination: "EPSON_SX510",
};

var text = "package.json";
var file = "package.json";

var jobText = printer.printText(text, options, "text_demo");
var jobFile = printer.printFile(file, options, "file_demo");

var onJobEnd = function () {
    console.log(this.identifier + ", job send to printer queue");
};

var onJobError = function (message) {
    console.log(this.identifier + ", error: " + message);
};

jobText.on("end", onJobEnd);
jobText.on("error", onJobError);

jobFile.on("end", onJobEnd);
jobFile.on("error", onJobError);