# @baemingo/epson-printer-sdk

> A modern and simple "connect-less" integration against EPSON printers

Latest version **0.9.24** (published 2024-06-18) · MIT license · 0 weekly downloads

## Install

```sh
npm install @baemingo/epson-printer-sdk
pnpm add @baemingo/epson-printer-sdk
yarn add @baemingo/epson-printer-sdk
bun add @baemingo/epson-printer-sdk
```

## Health

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

Positive: has types; no vulnerabilities.

Warnings: low downloads; no esm support; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.9.24 |
| Published | 2024-06-18 |
| First published | 2023-03-20 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 1 |
| Unpacked size | 42.8 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 17 |
| Maintainers | rickardkamel, kristoffergarling, joakimkonac, sofiamodig, sergeyg, joarwilk, anton0243, tgrade |

## Links

- npm: https://www.npmjs.com/package/@baemingo/epson-printer-sdk
- Repository: https://github.com/baemingo/epson-printer-sdk
- Homepage: https://github.com/baemingo/epson-printer-sdk#readme
- Issues: https://github.com/baemingo/epson-printer-sdk/issues
- npm.io page: https://npm.io/package/@baemingo/epson-printer-sdk

## Dependencies (1)

- [react-xml-parser](https://npm.io/package/react-xml-parser.md) ^1.1.8

## Recent versions

- 0.9.24 (latest) — 2024-06-18
- 0.9.23 — 2024-05-28
- 0.9.22 — 2024-03-22
- 0.9.21 — 2024-03-21
- 0.9.20 — 2024-02-05
- 0.9.19 — 2024-02-05
- 0.9.18 — 2024-02-05
- 0.9.17 — 2024-02-05
- 0.9.16 — 2024-02-05
- 0.9.15 — 2024-02-05
- 0.9.14 — 2024-02-05
- 0.9.13 — 2024-02-05
- 0.9.12 — 2023-04-13
- 0.9.11 — 2023-03-31
- 0.9.10 — 2023-03-21
- … 6 more at https://npm.io/package/@baemingo/epson-printer-sdk/versions

## README

# @baemingo/epson-printer-sdk

> A modern and simple "connect-less" integration against EPSON printers.

## Printer Prerequisites

- The printer needs to support Ethernet connections
- The printer needs to run on at least v2.x
- The printer needs to have the "epos print" setting turned on

## Install

Using npm:

```sh
npm install --save @baemingo/epson-printer-sdk
```

or using yarn:

```sh
yarn add @baemingo/epson-printer-sdk
```

## Publish

1. Change version number in package.json
2. `yarn build`
3. `cp package.json dist/`
4. `cd dist`
5. `npm publish`

## Usage

```ts
import EpsonPrinter, { EpsonPrint, Epson } from '@baemingo/epson-printer-sdk';

// Create a printer instance
const printer = new EpsonPrinter('192.168.0.1');

// Build up a print object
const print = new EpsonPrint();

// Add some text
print.addText('Hello, world!');

// Add a QR code
print.addSymbol('1234', Epson.Symbol.QRCODE_MODEL_1, 1, 50, 50, 2);

// Cut the paper
print.addCut(EpsonPrint.CUT_FEED);

// Send the print object to the printer
try {
  await printer.send(print);

  // Success
} catch (e) {
  // Print failed
  console.error(e.message);
}
```

## Connections & parallel printers

This implementation uses one-off http requests and does not set up a permanent connection. This means you can have a many-to-many setup with printers and clients and it will work just fine (unlike with the native SDKs).

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