lindell / lindell/JsBarcode

Unexpected Result

Open
#461 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
5.9k
Forks
1.1k
PR merge metrics
No merged PRs in 30d

Description

![barcodes](https://github.com/user-attachments/assets/f2185653-85d2-46e4-857d-4cf68f195932)

These are my settings:
JsBarcode("#barcode", 'T11314CIQ137111HA4AYETP', {
format: "CODE128",
fontSize: 14,
textMargin: 0,
margin: 0,
width: 1,
height: 60,
})
For some reason it's returning a different value in my application as the first barcode shows in the image. The second barcode was generated by the demo barcode generator using the same settings so not sure why they would be different. I've tried [JsBarcode.code128.min.js](https://cdn.jsdelivr.net/npm/jsbarcode@3.11.0/dist/barcodes/JsBarcode.code128.min.js) and [JsBarcode.all.min.js](https://cdn.jsdelivr.net/npm/jsbarcode@3.11.0/dist/JsBarcode.all.min.js)

Contributor guide

Open the contributing guide

Research direction

Start by reproducing the JsBarcode("#barcode", ...) call with the shown CODE128 settings, comparing the application output with the demo barcode generator. Check both JsBarcode.code128.min.js and JsBarcode.all.min.js; done means identifying why the same input and settings produce different barcodes or confirming the missing reproduction details.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
frontend
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.