Socket
Socket
Sign inDemoInstall

capacitor-plugin-sunmi-inner-v2

Package Overview
Dependencies
2
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    capacitor-plugin-sunmi-inner-v2

This is a capacitor plugin for sunmi inner printer


Version published
Maintainers
1
Created

Readme

Source

capacitor-plugin-sunmi-inner-v2

This is a capacitor plugin for sunmi inner printer

Install

npm install capacitor-plugin-sunmi-inner-v2
npx cap sync

API

  • echo(...)
  • printString(...)
  • printBarcode(...)
  • printQrcode(...)
  • printCommand(...)
  • openCashRegister()
  • printLcdString(...)
  • printLcdDoubleString(...)
  • clearLcd(...)

echo(...)

echo(options: { value: string; }) => Promise<{ value: string; }>
ParamType
options{ value: string; }

Returns: Promise<{ value: string; }>


printString(...)

printString(options: { contents: string; is_bold: boolean; is_underline: boolean; }) => Promise<{ results: boolean; }>
ParamType
options{ contents: string; is_bold: boolean; is_underline: boolean; }

Returns: Promise<{ results: boolean; }>


printBarcode(...)

printBarcode(options: { barcode: string; width: number; height: number; }) => Promise<{ results: boolean; }>
ParamType
options{ barcode: string; width: number; height: number; }

Returns: Promise<{ results: boolean; }>


printQrcode(...)

printQrcode(options: { qrcode: string; size: number; }) => Promise<{ results: boolean; }>
ParamType
options{ qrcode: string; size: number; }

Returns: Promise<{ results: boolean; }>


printCommand(...)

printCommand(options: { command: string; }) => Promise<{ results: boolean; }>
ParamType
options{ command: string; }

Returns: Promise<{ results: boolean; }>


openCashRegister()

openCashRegister() => Promise<{ results: boolean; }>

Returns: Promise<{ results: boolean; }>


printLcdString(...)

printLcdString(options: { contents: string; }) => Promise<{ results: boolean; }>
ParamType
options{ contents: string; }

Returns: Promise<{ results: boolean; }>


printLcdDoubleString(...)

printLcdDoubleString(options: { contents1: string; contents2: string; }) => Promise<{ results: boolean; }>
ParamType
options{ contents1: string; contents2: string; }

Returns: Promise<{ results: boolean; }>


clearLcd(...)

clearLcd(options: {}) => Promise<{ results: boolean; }>
ParamType
options{}

Returns: Promise<{ results: boolean; }>


Keywords

FAQs

Last updated on 02 May 2023

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc