0.0.3 • Published 5 months ago
archer-plus-usb-printer v0.0.3
archer-plus-usb-printer
The Plugin for printing to epson usb printer
Install
npm install archer-plus-usb-printer
npx cap sync
API
getPrinterList()
getPrinterList() => Promise<{ printerList: EpsonUSBPrinterInfo[]; }>
Returns: Promise<{ printerList: EpsonUSBPrinterInfo[]; }>
connectToPrinter(...)
connectToPrinter(options: { productId: number; }) => Promise<{ connected: boolean; }>
Param | Type |
---|---|
options | { productId: number; } |
Returns: Promise<{ connected: boolean; }>
print(...)
print(options: { printObject: string; lineFeed?: number; }) => Promise<void>
Param | Type |
---|---|
options | { printObject: string; lineFeed?: number; } |
Interfaces
EpsonUSBPrinterInfo
Prop | Type |
---|---|
productId | number |
productName | string |
connected | boolean |