barcode-detector 1.0.2
Spec compliant polyfill of the [Barcode Detection API](https://wicg.github.io/shape-detection-api/#barcode-detection-api). It can be used for barcode/QR-code recognition in images from various kinds of sources including `<canvas>`, `<img>`, `<image>` (in
barcode-detector@1.0.2 was published on 2023-06-11. Its manifest declares 2 runtime dependencies and 0 peer requirements. Type declarations are bundled according to the package metadata. No Node.js engine requirement is declared in this manifest.
Deprecated: The ownership of barcode-detector has been transferred to a new user. Please update to version 2.0.0 or higher for continued support and maintenance. View the new API and source code at https://github.com/Sec-ant/barcode-detector
All barcode-detector versions · Permanent reference to 1.0.2 · Latest release
Package specifications
| Version | 1.0.2 |
|---|---|
| License declaration | MIT |
| Published | 2023-06-11T06:13:05.902Z |
| Node.js requirement | Not declared |
| Type declarations | Bundled declarations |
| Runtime dependency count | 2 |
| Peer requirement count | 0 |
| Optional dependency count | 0 |
| Minified size | Measurement not available yet |
| Minified + gzip | Measurement not available yet |
| Unpacked distribution size | 1256.79 KiB |
| Published file count | 41 |
| Package type | Not declared |
| ES module entry | dist/barcode-detector.module.js |
| Default entry | dist/barcode-detector.js |
| Side effects declaration | Not declared |
| Direct advisories | 0 |
| Resolved graph dependencies | 4 |
| Repository stars | 238 |
| Repository forks | 13 |
Install barcode-detector 1.0.2
npm install barcode-detector@1.0.2 pnpm add barcode-detector@1.0.2 yarn add barcode-detector@1.0.2
Runtime dependencies
- jsqr ^1.3.1
- @zxing/library ^0.18.4
Peer requirements
- None declared
Optional dependencies
- None declared
Resolved dependency graph
This deps.dev graph describes a generic 64-bit Linux environment, not your application lockfile.
- @zxing/library@0.18.6 — direct
- @zxing/text-encoding@0.9.0 — indirect
- jsqr@1.4.0 — direct
- ts-custom-error@3.3.1 — indirect
How to interpret the specifications
Bundlephobia measurements use its standard package build and may exclude peer dependencies. Unpacked npm distribution size includes shipped files and is a different measurement. Module declarations do not prove tree-shaking or runtime compatibility.
Advisories apply to this package version directly; transitive dependencies need separate inspection. Repository signals describe the whole repository and are current observations, including on historical-version pages.
Evidence and freshness
- https://registry.npmjs.org/barcode-detector/1.0.2 — retrieved 2026-10-30T02:46:47.552Z
- https://api.deps.dev/v3/projects/github.com%2FSec-ant%2Fbarcode-detector — retrieved 2026-10-30T02:46:10.950Z
- https://api.deps.dev/v3/systems/npm/packages/barcode-detector/versions/1.0.2 — retrieved 2026-10-30T02:46:48.050Z
- https://api.deps.dev/v3/systems/npm/packages/barcode-detector/versions/1.0.2:dependencies — retrieved 2026-10-30T02:46:48.062Z