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 = ; const printers = await ; // or in a different portconst printers = await ;
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.