# node-lp

> node-lp is an adapter to the unix lp(1) command allowing files to be subitted for printing or altering a pending job.

Latest version **1.0.2** (published 2021-02-26) · 0 weekly downloads

## Install

```sh
npm install node-lp
pnpm add node-lp
yarn add node-lp
bun add node-lp
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.2 |
| Published | 2021-02-26 |
| First published | 2017-12-22 |
| Weekly downloads | 0 |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Unpacked size | 6.5 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 3 |
| Author | Tom Gallacher |
| Maintainers | wankdanker |
| Keywords | print, cups, lp, lpr |

## Links

- npm: https://www.npmjs.com/package/node-lp
- Repository: https://github.com/wankdanker/node-lp
- Homepage: https://github.com/wankdanker/node-lp#readme
- Issues: https://github.com/wankdanker/node-lp/issues
- npm.io page: https://npm.io/package/node-lp

## Dependencies (1)

- [mkdirp](https://npm.io/package/mkdirp.md) ~0.3.4

## Alternatives

- [@tsparticles/shape-image](https://npm.io/package/@tsparticles/shape-image.md) — 303.7K weekly downloads
- [@tsparticles/shape-line](https://npm.io/package/@tsparticles/shape-line.md) — 233.7K weekly downloads
- [stringify-attributes](https://npm.io/package/stringify-attributes.md) — 58.6K weekly downloads
- [mobile-drag-drop](https://npm.io/package/mobile-drag-drop.md) — 46.3K weekly downloads
- [@comunica/actor-rdf-parse-html](https://npm.io/package/@comunica/actor-rdf-parse-html.md) — 29.2K weekly downloads

## Recent versions

- 1.0.2 (latest) — 2021-02-26
- 1.0.1 — 2017-12-22
- 1.0.0 — 2017-12-22

## README

# 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.

## Requirements

You need `cups` installed to use this module.

## Installation

node-lp can then be installed via NPM

```sh
npm install node-lp
```

Then, require the module

```js
var lp = require("node-lp");
var options = {};

printer = lp(options);

printer.queue ("/tmp/test-file.pdf");
```

## Usage

```js
lp.queue(fileLocation, callback)

lp.queue(buffer, callback)

lp.stop(jobid)

lp.resume(jobid)

lp.hold(jobid)
```

## Options Available

Option | Description
------ | ----------
destination | Prints files to the named printer.
hostname | Chooses an alternate server.
port | Chooses an alternate server port (only use if hostname is specified).
username | Specifies the username to use when connecting to the server.
encryption | Forces encryption when connecting to the server.
digitalCopy | Allows logging of what excatly is being printed.
args | Pass custom arguments to lp (in array).

## Licence

Licensed under the [New BSD License](http://opensource.org/licenses/bsd-license.php)

---
_Source: https://npm.io/package/node-lp · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
