lsongdev / lsongdev/node-escpos

Issue with different escpos version

Open
#243 0 comments 1 reaction 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 have installed this package via `yarn add escpos`, of which the [latest released version in Github](https://github.com/song940/node-escpos/releases/tag/v2.4.4) is 2.4.4. However, the version which got installed is 2.5.2, as is in this [repository's master package.json](https://github.com/song940/node-escpos/blob/master/package.json#L3).

Also, the odd thing is that even though the Github master version and my installed version of escpos's package.json is same (i.e., 2.5.2), but I have found some missing code in [printer.js](https://github.com/song940/node-escpos/blob/master/printer.js). Meaning some of the code which is present in this repository's [printer.js](https://github.com/song940/node-escpos/blob/master/printer.js#L27) is not present in the printer.js installed in my pc.

Eg.
This is in the [repository's printer.js](this.width = options && options.width || 48;), which is not in my installed version of printer.js.
`this.width = options && options.width || 48;`

How can I correct this?

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

Compare the released v2.4.4 package, the repository's master package.json and printer.js, and the installed escpos files described in the report. Determine which published artifact or version metadata differs, then document the discrepancy and verify that the installed package matches the intended release contents.

Written by the indexing model from the issue text.

Assessment

Tech stack
node.js
Domain
embedded-iot
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.