Skip to content

A node.js library to print labels using a Brother label printer.

License

Notifications You must be signed in to change notification settings

driehle/node-brother-label-printer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

node-brother-label-printer

A node.js library to print labels on a Brother label printer using the Internet Printing Protocol (IPP).

⚠️ Library abandoned

Please note: This library is considered a proof-of-concept and is neither actively maintained nor further developed.

How to print a PNG file

First, you will need the IP address of your printer. The port for IPP is usually 631 and the path is usually /ipp/print. Please refer to your printer's manual for further information. Next, you will need a PNG file to print. Currently, PNG is the only file format supported by this library.

const brother = require('node-brother-label-printer');
const printerUrl = 'http://192.168.178.71:631/ipp/print';

brother.printPngFile(printerUrl, './sample-image.png', {landscape: false});

See the samples folder for further details.

Considerations

Since this library is based on IPP it needs (raw, i.e. TCP) network access. This limitation implies that you cannot use this library in a web browser, where Javascript can only do HTTP/WebSocket requests. You can use this library on the server-side or in an ElectronJS desktop application.

About

A node.js library to print labels using a Brother label printer.

Resources

License

Stars

Watchers

Forks

Packages

No packages published