lsongdev / lsongdev/node-escpos
Issue with different escpos version
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
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- 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