ThermalPrinter
Use node.js to communicate with Adafruit/Sparkfun Thermal Printer
Install / Use
/learn @xseignard/ThermalPrinterREADME
Control the Adafruit/Sparkfun thermal printer from node.js
Largely inspired by http://electronicfields.wordpress.com/2011/09/29/thermal-printer-dot-net/
You can print images, but they need to be 384px wide.
It's a fluent API, so you can chain functions, but don't forget to call print at the end to actually print something!
Crappy schematics
You'll need an USB/Serial converter.

Usage
- install with
npm install thermalprinter --save - check the demo sample:
var SerialPort = require('serialport'),
serialPort = new SerialPort('/dev/ttyUSB0', {
baudRate: 19200
}),
Printer = require('thermalprinter');
var path = __dirname + '/images/nodebot.png';
serialPort.on('open',function() {
var printer = new Printer(serialPort);
printer.on('ready', function() {
printer
.indent(10)
.horizontalLine(16)
.bold(true)
.indent(10)
.printLine('first line')
.bold(false)
.inverse(true)
.big(true)
.right()
.printLine('second line')
.printImage(path)
.print(function() {
console.log('done');
process.exit();
});
});
});
Demo

Related Skills
node-connect
350.1kDiagnose OpenClaw node connection and pairing failures for Android, iOS, and macOS companion apps
frontend-design
109.9kCreate distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, or applications. Generates creative, polished code that avoids generic AI aesthetics.
openai-whisper-api
350.1kTranscribe audio via OpenAI Audio Transcriptions API (Whisper).
qqbot-media
350.1kQQBot 富媒体收发能力。使用 <qqmedia> 标签,系统根据文件扩展名自动识别类型(图片/语音/视频/文件)。
