Skip to content

tomgco/node-lp

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Node lp

node-lp is an adapter to the unix 'lp(1)' command allowing files to be submitted for printing or altering a pending job. This will only work on Linux at the moment however if anyone wants a windows port then that might happen.

Installation

Note: you need cups installed to use.

Node-lp can then be installed via NPM

npm install lp-client

Then, require the module

var lp = require("lp-client");
var options = {};

printer = lp(options);
printer.queue ("Hello");

Usage

lp.queue(fileLocation, [options], listener)

lp.queue(buffer, [options], listener)

lp.stop(jobid)

lp.resume(jobid)

lp.hold(jobid)

Licence

Licensed under the New BSD License

About

Physically print stuff in node.js

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published