Skip to content

Node module for Adding, deleting, get or set default print queue and list the added print queues. Supports Windows, Mac and Linux.

License

Notifications You must be signed in to change notification settings

sendevour/printer-mgmt

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Printer-mgmt

Node module to Add, delete, get or set default Printer and list added Printers. Supports Windows, Mac and Linux operating systems.

Prerequisites

Install the required printers driver packages in Mac and Linux environments.

Windows environments requires, Microsoft Visual C++ 2010 Redistributable Package (x64) or Microsoft Visual C++ 2010 Redistributable Package (x86) needs to be installed. Also, copy printermgmt.dll from the module's dist/win32 or dist/win64 to %system32% based on the windows machine's architecture.

Installation

This is a Node.js module available through the npm registry.

Before installing, download and install Node.js. Node.js 0.10 or higher is required.

Installation is done using the npm install command:

npm install printer-mgmt

Using the module

const Printer = require("printer-mgmt");
const printer = new Printer();

printer.listPrintQueues();
printer.addPrintQueue(printerOptions);
printer.setDefaultPrintQueue("test");
printer.getDefaultPrintQueue();
printer.deletePrintQueue("test");

Follow, examples for more information.

Features

Performs printer management on Windows, Mac and Linux environments

Supports 32 bit and 64 bit Operating systems

Easy to Use

Works fast

Author

License

This project is licensed under the MIT License - see the LICENSE.md file for details

About

Node module for Adding, deleting, get or set default print queue and list the added print queues. Supports Windows, Mac and Linux.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published