@ottimis/sunmi-native-print
v6.0.1
Published
Plugin to print through Sunmi printers
Downloads
10
Readme
@ottimis/sunmi-native-print
Plugin to print through Sunmi printers
Install
npm install @ottimis/sunmi-native-print
npx cap sync
API
echo(...)
echo(options: { value: string; }) => Promise<{ value: string; }>
| Param | Type |
| ------------- | ------------------------------- |
| options
| { value: string; } |
Returns: Promise<{ value: string; }>
connect(...)
connect(options?: {} | undefined) => Promise<{ success: boolean; }>
| Param | Type |
| ------------- | --------------- |
| options
| {} |
Returns: Promise<{ success: boolean; }>
disconnect(...)
disconnect(options?: {} | undefined) => Promise<{ success: boolean; }>
| Param | Type |
| ------------- | --------------- |
| options
| {} |
Returns: Promise<{ success: boolean; }>
sendRawData(...)
sendRawData(options: { data: string; }) => Promise<{ success: boolean; }>
| Param | Type |
| ------------- | ------------------------------ |
| options
| { data: string; } |
Returns: Promise<{ success: boolean; }>
checkPrinterStatus()
checkPrinterStatus() => Promise<{ success: boolean; }>
Returns: Promise<{ success: boolean; }>