New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

printer-tray-client

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

printer-tray-client

Simple JS client for local printer Java tray app

latest
npmnpm
Version
1.0.0
Version published
Maintainers
1
Created
Source

Printer Client

This project provides a simple JavaScript client for interacting with a local Java QZ-Tray-like application to manage printing tasks. It includes functions to retrieve installed printers and send print requests.

Installation

To install the package, clone the repository and run:

npm install

Usage

Importing the Functions

You can import the functions from the printerClient.js file as follows:

import { getPrinters, printText } from './src/printerClient';

Getting Installed Printers

To get a list of installed printers, use the getPrinters function:

const printers = await getPrinters();
console.log(printers);

Sending a Print Request

To send a print request, use the printText function:

const printerName = 'Your Printer Name';
const content = ['Your content to print'];

const response = await printText(printerName, content);
console.log(response);

Testing

To run the tests for this project, use the following command:

npm test

License

This project is licensed under the MIT License. See the LICENSE file for more details.

Keywords

printer

FAQs

Package last updated on 25 Nov 2025

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts