# tabski-printer-library

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

Latest version **1.7.8** (published 2023-04-21) · ISC license · 0 weekly downloads

## Install

```sh
npm install tabski-printer-library
pnpm add tabski-printer-library
yarn add tabski-printer-library
bun add tabski-printer-library
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.7.8 |
| Published | 2023-04-21 |
| First published | 2022-05-30 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 3 |
| Unpacked size | 44.3 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Tabski |
| Maintainers | tabski |
| Keywords | dot matrix printer, dot matrix, thermal printer, thermal, printer, epson, star |

## Links

- npm: https://www.npmjs.com/package/tabski-printer-library
- npm.io page: https://npm.io/package/tabski-printer-library

## Dependencies (3)

- [pngjs](https://npm.io/package/pngjs.md) 7.0.0
- [unorm](https://npm.io/package/unorm.md) ^1.4.1
- [iconv-lite](https://npm.io/package/iconv-lite.md) ^0.5.0

## Alternatives

- [lodash.startswith](https://npm.io/package/lodash.startswith.md) — 769.7K weekly downloads
- [@tarojs/service](https://npm.io/package/@tarojs/service.md) — 33.9K weekly downloads
- [io.extendreality.tilia.indicators.spatialtargets.unity](https://npm.io/package/io.extendreality.tilia.indicators.spatialtargets.unity.md) — 131 weekly downloads
- [@rtarojs/taro](https://npm.io/package/@rtarojs/taro.md) — 90 weekly downloads
- [node-branch-io](https://npm.io/package/node-branch-io.md) — 50 weekly downloads

## Recent versions

- 1.7.8 (latest) — 2023-04-21
- 1.7.7 — 2023-03-17
- 1.7.6 — 2023-01-28
- 1.7.5 — 2022-12-27
- 1.7.4 — 2022-11-12
- 1.7.3 — 2022-11-05
- 1.7.2 — 2022-10-28
- 1.7.1 — 2022-09-26
- 1.7.0 — 2022-09-26
- 1.6.0 — 2022-08-09
- 1.5.0 — 2022-06-02
- 1.3.0 — 2022-05-31
- 1.2.0 — 2022-05-31
- 1.1.0 — 2022-05-30

## 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](./CHANGELOG.md)

```

```

```

```

---
_Source: https://npm.io/package/tabski-printer-library · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
