therminal-print
v0.0.14
Published
A plugin to print using thermal printers
Downloads
63
Readme
thermal-printer
A plugin to print using thermal printers
Install
npm install thermal-printer
npx cap syncAPI
printFormattedText(...)requestPermissions(...)listPrinters()launchIntent(...)launchIntentPDF(...)- Interfaces
printFormattedText(...)
printFormattedText(data: PrintFormattedText) => Promise<void>| Param | Type |
| ---------- | ----------------------------------------------------------------- |
| data | PrintFormattedText |
requestPermissions(...)
requestPermissions(data: PrinterToUse) => Promise<void>| Param | Type |
| ---------- | ----------------------------------------------------- |
| data | PrinterToUse |
listPrinters()
listPrinters() => Promise<{ printers: any[]; }>Returns: Promise<{ printers: any[]; }>
launchIntent(...)
launchIntent(data: Intent) => Promise<void>| Param | Type |
| ---------- | ----------------------------------------- |
| data | Intent |
launchIntentPDF(...)
launchIntentPDF(data: Intent) => Promise<void>| Param | Type |
| ---------- | ----------------------------------------- |
| data | Intent |
Interfaces
PrintFormattedText
| Prop | Type |
| ---------- | ------------------- |
| text | string |
PrinterToUse
| Prop | Type |
| -------- | ----------------------------- |
| id | string | number |
Intent
| Prop | Type |
| ----------- | ------------------- |
| param | string |
