Skip to content

This npm package was made to control epson thermal printer

Notifications You must be signed in to change notification settings

Americas/node-thermal-printer

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

node-thermal-printer

Commands are sent to /dev/usb/lp0

Installation

$ npm install node-thermal-printer

Features

printer.execute();                  // Executes all the commands
printer.print("Hello World");       // Append text
printer.println("Hello World");     // Append text with new line
printer.cut();                      // Cuts the paper

printer.bold(true);                 // Set text bold
printer.drawLine();                 // Draws a line

printer.alignCenter();              // Align text to center
printer.alignLeft();                // Align text to left
printer.alignRight();               // Align text to right

printer.setTypeFontA();             // Set font type to A (default)
printer.setTypeFontB();             // Set font type to B

printer.setTextNormal();            // Set text to normal
printer.setTextDoubleHeight();      // Set text to double height
printer.setTextDoubleWidth();       // Set text to double width
printer.setTextQuadArea();          // Set text to quad area

Examples

var printer = require("node-thermal-printer");
printer.alignCenter();
printer.println("Hello world");
printer.cut();
printer.execute();

About

This npm package was made to control epson thermal printer

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 100.0%