npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

tabski-printer-library

v1.7.8

Published

Library for printing on Epson and Star dot matrix and thermal printers with NodeJS

Downloads

6

Readme

Node Dot Matrix and Thermal Printer

Node.js module for EPSON and STAR impact dot matrix and thermal printers command line printing.

Documents

Star: Dot Impact Printer - STAR Command Specifications Rev. 1.91 https://www.starmicronics.com/support/Mannualfolder/dot_star_cm_en.pdf Supported products: SP2000, SP500, SP700, BD100, BD500

Line Thermal Printer - STAR Graphic Mode Command Specifications Rev. 2.33 https://starmicronics.com/support/download/star-graphic-mode-command-specifications // Supported products: TSP100U, TSP100PU, TSP100GT, TSP100LAN, TSP100IIU, TSP100IIIW, TSP1000IIILAN, TSP100IIIBI, TSP100IIIU

Epson Dot Impact Printer - ESC/POS Command Reference Rev. 2.60 https://reference.epson-biz.com/modules/ref_escpos/index.php?content_id=2 Supported product: TM-U220

Features

getPrinters(); // fetches printer based on series that is provided, each serie has their own set of command

EPSON Dot Matrix set of commands

setCharacterSet() // specify international character set

hwInit() // initialize printer, clears data in the print buffer and resets printer modes

isPrinterConnected() // check printer connection

execute() // executes all printer commands from buffer

cut() // cut paper

setRedColor() // set red color printing

lineFeed() // line feed

strikeOn() // strike on text

underline2() // underline font 2-dots

setFontA() // selects font A

setFontB() // selects font B

clear() // clear buffer

print() // print text in same line

println() // print text in new line

bold() // bold text

underline() // underline font 1-dot

alignCenter() // align text to the center of ticket

alignLeft() // align text to the left edge of ticket

alignRight() // align text to the right edge of ticket

setRightSpaceChar() // set right-side character spacing

setPrintingDoubleHeight() // set double height text

setPrintingDoubleWidth() // set double width text

twoColorPrinting() // enables two color printing black/red

newLine() // add new empty line

drawLine() // draw line with line character

tableCustom() // makes table with rows from data

STAR Dot Matrix set of commands

setCharacterSet() // specify international character set

hwInit() // initialize printer, clears data in the print buffer and resets printer modes

isPrinterConnected() // check printer connection

execute() // executes all printer commands from buffer

cut() // cut the paper

setRedColor() // set red color printing

set7x9Font() // set 7 x 9 font (half dots)

set5x92P1Font() // set 5 x 9 font (2P-1)

set5x93P1Font() // set  5 x 9 font (3P-1)

upperline() // specify upperline 1-dot

invert() // specify white/black inversion and red color printing

setCharDoubleWide() // specify double-wide expanded characters

clear() // clear buffer

print() // print text in same line

println() // print text in new line

bold() // bold text

underline() // specify underling mode 9th-dot of character

alignCenter() // align text to the center of ticket

alignLeft() // align text to the left edge of ticket

alignRight() // align text to the right edge of ticket

setRightSpaceChar() // set right-side character spacing

setPrintingDoubleHeight() // set double height text

setPrintingDoubleWidth() // set double width text

twoColorPrinting() // select 2-color printing mode

newLine() // add new empty line

drawLine() // draw line with line character

tableCustom() // makes table with rows from data

STAR Thermal set of commands

enterRaster() // enter raster mode

quitRaster() // quit raster mode

setStatus() // set status transmission conditions

setPageLength() // set raster page length

getRealStatus() // real-time printer status

// image data is 2D canvas which means it is two-dimensional grid
// from image data we create a Buffer object representing the image contained in the canvas
// image buffer is send to transfer data as argument
// transfer data method is transferring data from image buffer to the raster data in binary
transferData()

isPrinterConnected() // check printer connection

execute() // executes all printer commands from buffer

CHANGELOG

See CHANGELOG.md