zxing-js / library

Multi-format 1D/2D barcode image processing library, usable in JavaScript ecosystem.
https://zxing-js.github.io/library/
Apache License 2.0
2.47k stars 546 forks source link

Canonical location for compiled Javascript releases #450

Open minusdavid opened 3 years ago

minusdavid commented 3 years ago

I am loving zxing-js, but I am curious where is the best place to download compiled Javascript releases that can be used client-side?

I notice many examples use https://unpkg.com/@zxing/library@latest, but that URL is currently broken, and I like to avoid CDNs and embed libraries in my projects.

That said, I was using https://unpkg.com/@zxing/library@latest back on May 21st 2021 and I was getting back Javascript that was working with the examples. I saved a local copy, but it doesn't have any embedded version numbers and it doesn't exactly match anything I can find online.

I'm guessing that URL might have resolved to something like https://cdn.jsdelivr.net/npm/@zxing/browser@0.0.9/umd/zxing-browser.js but I don't really know.

minusdavid commented 3 years ago

I just tried with my sample code again (just a bit of Javascript on a static HTML page), and https://unpkg.com/@zxing/browser@0.0.9/umd/zxing-browser.js didn't work. However, https://unpkg.com/@zxing/library@0.18.6/umd/index.min.js, did work when using ZXing.BrowserMultiFormatReader.

github-actions[bot] commented 5 months ago

Stale issue message