0.0.1 • Published 9 months ago

@mmote/niimbluelib-headless v0.0.1

Weekly downloads
-
License
MIT
Repository
github
Last release
9 months ago

NiimBlueLib-Headless

niimbluelib client implementations for not-browser use.

Tested with:

  • Windows 10
  • Bluetooth adapter (TP-LINK UB500)
  • USB serial connection
  • Printers: B1, D110

Usage example:

Install

node-gyp is required to install bluetooth-serial-port dependency. It requires working compiler installed on your system.

See node-gyp and bluetooth-serial-port installation.

Command-line usage

While development:

yarn cli <options>

If installed as package globally:

niimblue-cli <options>

Available options:

niimblue-cli help print
niimblue-cli help info

Examples

B1 serial:

niimblue-cli print -d -t serial -a COM8 -o top label_15x30.png

B1 Bluetooth:

niimblue-cli print -d -t bluetooth -a 07:27:03:17:6E:82 -o top label_15x30.png

D110 Bluetooth:

niimblue-cli print -d -t bluetooth -a 03:26:03:C3:F9:11 -o left label_15x30.png