
Security News
Open VSX Begins Implementing Pre-Publish Security Checks After Repeated Supply Chain Incidents
Following multiple malicious extension incidents, Open VSX outlines new safeguards designed to catch risky uploads earlier.
taro-bluetooth-print
Advanced tools
A lightweight, high-performance Bluetooth printing library for Taro, designed for simplicity and ease of use.
npm install taro-bluetooth-print
# or
yarn add taro-bluetooth-print
import { BluetoothPrinter } from 'taro-bluetooth-print';
const printer = new BluetoothPrinter();
async function printReceipt(deviceId: string) {
try {
await printer.connect(deviceId);
await printer
.text('Hello World!')
.feed()
.text('This is a test print.')
.feed(2)
.cut()
.print();
console.log('Print success');
} catch (error) {
console.error('Print failed', error);
} finally {
await printer.disconnect();
}
}
// Assuming you have pixel data (RGBA) from a canvas or image
const imageData = new Uint8Array([...]);
const width = 200;
const height = 100;
await printer
.text('Image Print:')
.feed()
.image(imageData, width, height)
.feed(2)
.print();
BluetoothPrinterconnect(deviceId: string): Promise<this>disconnect(): Promise<void>text(content: string, encoding?: string): thisfeed(lines?: number): thiscut(): thisimage(data: Uint8Array, width: number, height: number): thisprint(): Promise<void>MIT
FAQs
Taro 蓝牙打印库 v2.2 - 轻量级、高性能、跨平台支持微信、支付宝、百度、字节跳动小程序及H5 Web Bluetooth
The npm package taro-bluetooth-print receives a total of 20 weekly downloads. As such, taro-bluetooth-print popularity was classified as not popular.
We found that taro-bluetooth-print demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
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.

Security News
Following multiple malicious extension incidents, Open VSX outlines new safeguards designed to catch risky uploads earlier.

Research
/Security News
Threat actors compromised four oorzc Open VSX extensions with more than 22,000 downloads, pushing malicious versions that install a staged loader, evade Russian-locale systems, pull C2 from Solana memos, and steal macOS credentials and wallets.

Security News
Lodash 4.17.23 marks a security reset, with maintainers rebuilding governance and infrastructure to support long-term, sustainable maintenance.