0.0.2 • Published 4 years ago

wprinter v0.0.2

Weekly downloads
-
License
CC0-1.0
Repository
gitlab
Last release
4 years ago

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
0.0.2

4 years ago

0.0.1

4 years ago