0.9.24 • Published 1 year ago

@baemingo/epson-printer-sdk v0.9.24

Weekly downloads
-
License
MIT
Repository
github
Last release
1 year ago

@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:

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

or using yarn:

yarn add @baemingo/epson-printer-sdk

Usage

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).

0.9.23

1 year ago

0.9.24

1 year ago

0.9.22

1 year ago

0.9.21

1 year ago

0.9.13

1 year ago

0.9.14

1 year ago

0.9.15

1 year ago

0.9.20

1 year ago

0.9.16

1 year ago

0.9.17

1 year ago

0.9.18

1 year ago

0.9.19

1 year ago

0.9.12

2 years ago

0.9.11

2 years ago

0.9.10

2 years ago

0.9.9

2 years ago

0.9.8

2 years ago

0.9.7

2 years ago

0.9.5

2 years ago

0.9.3

2 years ago

0.9.2

2 years ago