search-printers
v0.1.0
Published
Search for thermal printers in connected networks
Downloads
3
Maintainers
Readme
search-printers
Node.js module to search for EPSON (and similar) thermal printers in the connected networks.
Table of Contents
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
ObjectAll parameters are optional
timeout
Number Socket connection timeout (in ms)default:
3000
port
Number Network port to search for printersdefault:
9100
buffer
Buffer Buffer to get printer name
Returns Array<Printer>
Printer
host
string : IPv4 address of the printerport
number : Network port in which printer is listeningname
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.