wprinter
TypeScript icon, indicating that this package has built-in type declarations

0.0.2 • Public • Published

Wprinter

Print on thermal printer from a web app.

How to use Wprinter

Add @wprinter to the project:

npm install wprinter

Create a file src/main.js with the following content:

import { printer } from 'wprinter'

const printerInstance = printer('usb')

await printerInstance.printText([
  '',
  printerInstance.textCenter('TEXT ==> '),
  '',
  // printer.LINE_BREAK,
])

Contribute

Install and build

# Install once all Node.js dependencies
npm install

# build ts files
npm run tsc:watch

Readme

Keywords

Package Sidebar

Install

npm i wprinter

Weekly Downloads

0

Version

0.0.2

License

CC0-1.0

Unpacked Size

44.4 kB

Total Files

17

Last publish

Collaborators

  • rickfaf