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

search-printers

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

search-printers

Search for thermal printers in connected networks

latest
npmnpm
Version
0.1.0
Version published
Weekly downloads
2
100%
Maintainers
1
Weekly downloads
 
Created
Source

search-printers

Node.js module to search for EPSON (and similar) thermal printers in the connected networks.

Table of Contents

  • Install
  • Usage
  • API
  • Contribute
  • License

Install

# Yarn
yarn add search-printers

# NPM
npm install search-printers

Usage

const SearchPrinters = require("search-printers");

const printers = await SearchPrinters();

// or in a different port
const printers = await SearchPrinters({ port: 9090 });

Use node-thermal-printer to connect to and use the printers

API

SearchPrinters

Search for printers

Parameters

  • Options Object

    All parameters are optional

    • timeout Number Socket connection timeout (in ms)

      default: 3000

    • port Number Network port to search for printers

      default: 9100

    • buffer Buffer Buffer to get printer name

Returns Array<Printer>

Printer

  • host string : IPv4 address of the printer
  • port number : Network port in which printer is listening
  • name string : Name of the printer

Contribute

First off, thanks for taking the time to contribute! Now, take a moment to be sure your contributions make sense to everyone else.

Reporting Issues

Found a problem? Want a new feature? First of all see if your issue or idea has already been reported. If not, just open a new clear and descriptive issue.

Submitting pull requests

Pull requests are the greatest contributions, so be sure they are focused in scope, and do avoid unrelated commits.

  • Fork it!
  • Make your changes.
  • Submit a pull request with full remarks documenting your changes.

Keywords

search

FAQs

Package last updated on 14 Jun 2019

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