lsongdev / lsongdev/node-escpos

v3 and WebUSB

Open
#336 10 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
TypeScript
Stars
1.6k
Forks
443
PR merge metrics
No merged PRs in 30d

Description

First of all than you for the great library and for the work done on moving require to the part where it's needed.
This means that I can now, use the library inside a web site using the WebUSB API.

What I'm trying to do now, is write a WebUSB adapter, that takes as a parameter a USBDevice, and the endpoint to use to transferOut the content of the buffer to the device.

I would really appreciate some help working on this adapter, from any one with a working device that uses the vanilla USB adapter, since I don't have a thermal printer at my disposal for quick coding/testing/debugging.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

The issue names no repository files or tests; start by comparing the requested WebUSB adapter with the existing vanilla USB adapter. Verify USBDevice.transferOut behavior and endpoint handling with a compatible thermal printer, and consider the adapter complete when it can send the buffer successfully through WebUSB.

Written by the indexing model from the issue text.

Assessment

Tech stack
nodejs, typescript
Domain
embedded-iot
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
42/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.