wprinter
v0.0.2
Published
Print on thermal printer from a web app.
Downloads
13
Readme
Wprinter
Print on thermal printer from a web app.
How to use Wprinter
Add @wprinter to the project:
npm install wprinterCreate 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