Catalog npm
PACKAGE EXPLORERView in registry

4ps-printer

npm

Printer service for internal use at Pizza4Ps

printer
Versions collected11
Direct dependencies9From release 1.2.2
Last observed20 Oct, 20:14 UTC

README

Current package documentation

4ps-printer-js

A comprehensive printing library for receipt printers supporting multiple protocols and connection types including ESC/POS, Star, and SII protocols over network, serial, and USB connections.

Features

  • Multiple Protocol Support: ESC/POS, ESC/POS SII, Star, PNG
  • Flexible Connections: Network (TCP/IP), Serial Port, USB Device
  • TypeScript Support: Full type definitions included
  • Modern API: Promise-based with async/await support
  • Markdown Printing: Convert markdown to receipt format

Installation

npm install 4ps-printer

Quick Start

import { Printer, PrinterConfig } from '4ps-printer';

const printer = new Printer();
const options = {
  destination: '192.168.1.100',
  printer: 'escpos',
  charactersPerLine: 48
};

const result = await printer.printMarkdown('# Receipt\n\nTotal: $10.00', options, page);

API Reference

Printer Class

The main class for handling print operations.

Methods

  • printMarkdown(content: string, options: IPrintOptions, page?: any): Promise<any>

PrinterConfig

Configuration class for printer settings.

ConnectionManager

Manages different types of printer connections.

Supported Protocols

  • ESC/POS: Standard receipt printer protocol
  • ESC/POS SII: SII variant of ESC/POS
  • Star: Star Micronics printer protocol
  • PNG: Image-based printing

Supported Connections

  • Network (TCP/IP): Connect via IP address and port
  • Serial Port: Direct serial connection
  • USB Device: USB-connected printers

License

ISC

Support

For issues and questions, please visit our GitHub repository.

Downloads & popularity

Awaiting observations

No metric observations yet

Download counts and popularity will appear here as the collector receives them.

Versions 11

Collected releases
VersionPublishedDirect dependenciesOpen version
1.2.2Registry latest21 Nov 20259
1.2.121 Nov 20259
1.2.021 Nov 20259
1.1.121 Nov 202510
1.1.021 Nov 202510
1.0.621 Nov 20259
1.0.521 Nov 20259
1.0.421 Nov 20259
1.0.310 Nov 20259
1.0.117 Oct 20259
1.0.015 Oct 20256

Package advisories

0
No matching advisories collected

This describes our collected data; it is not a security assessment.

Repository

PENDING
pizza4ps-technologies/4ps-printer-js

Shared repository data · GitHub

License detected in repository
Not collected

Metadata history

Meaningful changes
Current collected state Current

Observed since 20 Oct, 20:14 UTC

No superseded metadata states collected. Unchanged observations do not create new revisions.

Record identity

package:01c76d0b1535817131a56babd2b426819d0d84b20f5cc830ff7def7457ac4971