Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/armetiz/node-printer-lp
https://github.com/armetiz/node-printer-lp
Last synced: about 1 month ago
JSON representation
- Host: GitHub
- URL: https://github.com/armetiz/node-printer-lp
- Owner: armetiz
- License: mit
- Created: 2012-08-28T15:05:05.000Z (about 12 years ago)
- Default Branch: master
- Last Pushed: 2014-02-02T18:44:47.000Z (almost 11 years ago)
- Last Synced: 2024-08-09T15:01:35.629Z (3 months ago)
- Language: JavaScript
- Size: 144 KB
- Stars: 10
- Watchers: 2
- Forks: 41
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG
Awesome Lists containing this project
README
node-printer-lp
===============**This repository is not maintained any more.**
A tool to print document or data. Based on "lp" binary.
## Quick Examples
```js
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);
```