lsongdev / lsongdev/node-escpos

Unable to print text

Open
#381 0 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

I am using the following command to print text but its not doing so, just printing the barcode

    printer
    .font('a')
    .align('ct')
    .size(1, 1)
    .text('EAN13 barcode example')
    .barcode('123456789012', 'EAN13') // code length 12
    .cut()
    .close();

I am not sure which printer it is, because it is white labelled with a private company's name, but in the command it is mentioned

ESC/POS/TSC/EPL/CPCL

It would be really helpful if your example may include full code to design a barcode, with different kind of placements

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

No source file or test is named. Start by reproducing the shown printer.font, align, size, text, barcode, cut, and close sequence, then determine which of the listed ESC/POS, TSC, EPL, or CPCL protocols the white-label printer uses; done means text prints alongside the EAN13 barcode and the behavior is documented with a complete placement example.

Written by the indexing model from the issue text.

Assessment

Tech stack
node.js, typescript
Domain
embedded-iot, tooling
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.