Skip to content

asciidisco/webusb-workshop

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 

Repository files navigation

webusb-workshop

This repository contains a few examples on how to connect with USB devices via the WebUSB web interface:

  • 01-connect-device - Connect to a device & display its meta data
  • 02-print-text - Connect to POS compatible printer & print text
  • 03-canvas-to-print - Connect to POS compatible printer & print the contents of a <canvas> element

If you'd like to dig further into programmign POS printers, hav a look at ESC/POS Mode Command Specifications which describe all the commands from the POS spec that can be send to compatible printers in order to make some art™

Running the examples

Any webserver will do, if you have Node.js installed, just run

npx http-server -p ${PORT}

and you're good to go.

About

Learn how to steer POS printers with WebUSB

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages