🚀 Socket Launch Week Day 5:Introducing Repository Access Permissions and Custom Roles.Learn more
Sign In

pos-print

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

pos-print

nodejs esc tsc print

latest
Source
npmnpm
Version
1.0.5
Version published
Weekly downloads
14
133.33%
Maintainers
1
Weekly downloads
 
Created
Source

pos-print

esc tsc print for nodejs
This module dependencies node-printer

#How to use

  • javascript const print = require('pos-print');
  • typescript import * as print from 'pos-print'

API

  • getPrinters()
    Get all installed printers

  • printText(printerName:string, text:string)
    Return Promise
    Print text,print.printText('epson-58','hello!')

  • printRaw(printerName:string, data:any)
    Return Promise
    Print cmd,print.printRaw('epson-58','\x1b\x40')

  • printImageByTSC(options)
    options{ printer: string; url: string; pageWidth: number; pageHeight: number; gap: number; copy: number; }
    Return Promise
    Print image by TSC

  • printImageByESC(options)
    options{ printer: string; url: string; maxWidth: number; }
    Return Promise
    Print image by ESC/POS

Keywords

nodejs

FAQs

Package last updated on 14 Aug 2018

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts