Socket
Book a DemoInstallSign in
Socket

@public-js/bluetooth-printer-zj

Package Overview
Dependencies
Maintainers
0
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@public-js/bluetooth-printer-zj

Bluetooth printer support for Capacitor

0.0.3
latest
Source
npmnpm
Version published
Maintainers
0
Created
Source

@public-js/bluetooth-printer-zj

Bluetooth printer support for Capacitor

Install

npm install @public-js/bluetooth-printer-zj
npx cap sync

API

  • discover()
  • connect(...)
  • disconnect()
  • print(...)
  • Interfaces
  • Type Aliases

discover()

discover() => Promise<DiscoverResponse>

Returns: Promise<DiscoverResponse>

connect(...)

connect(data: ConnectRequest) => Promise<ConnectResponse>
ParamType
dataConnectRequest

Returns: Promise<ConnectResponse>

disconnect()

disconnect() => Promise<void>

print(...)

print(data: PrintRequest) => Promise<void>
ParamType
dataPrintRequest

Interfaces

DiscoverResponse

PropType
devicesDiscoveredDevice[]

DiscoveredDevice

PropType
addressstring
namestring
bondedboolean

ConnectResponse

PropType
devicestring

ConnectRequest

PropType
addressstring

PrintRequest

PropType
blocksPrintBlock[]
pageWidthnumber
feednumber

PrintBlock

PropTypeDefault
typePrintBlockTypelf

PrintBlockLf

PropType
type'lf'

PrintBlockTextRaw

PropTypeDefault
type'textRaw'
encodingstringGBK
codepagenumber0
scaleWidthnumber0
scaleHeightnumber0
fontStylenumber0
alignnumber0

PrintBlockTextDraw

PropTypeDefault
type'textDraw'
lineCountnumber
fontSizenumber16
modenumber0

PrintBlockTextQr

PropTypeDefault
type'textQr'
codeWidthnumber
modenumber0

Type Aliases

PrintBlockType

'lf' | 'textRaw' | 'textDraw' | 'textQr'

PrintBlock

PrintBlockLf | PrintBlockTextRaw | PrintBlockTextDraw | PrintBlockTextQr

Keywords

capacitor

FAQs

Package last updated on 07 Jan 2025

Did you know?

Socket

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

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.