Node module to Add, delete, get or set default Printer and list added Printers. Supports Windows, Mac and Linux operating systems.
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.
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
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.
Performs printer management on Windows, Mac and Linux environments
Supports 32 bit and 64 bit Operating systems
Easy to Use
Works fast
- Sendil Kumar Gurusamy - sendevour
This project is licensed under the MIT License - see the LICENSE.md file for details