barcode-detector

(β˜… 232)

A Barcode Detection API ponyfill/polyfill that uses ZXing-C++ WebAssembly under the hood.

  • .commitlintrc.json
  • .gitignore
  • .lintstagedrc.json
  • .node-version
  • .prettierignore
  • .prettierrc
  • .simple-git-hooks.json
  • biome.json
  • CHANGELOG.md
  • index.html
  • LICENSE
  • main.ts
  • package.json
  • pnpm-lock.yaml
  • pnpm-workspace.yaml
  • README.md
  • renovate.json
  • tsconfig.base.json
  • tsconfig.json
  • tsconfig.node.json
  • vite.config.ts

# Installation Guide

1. Get the code
git clone https://github.com/Sec-ant/barcode-detector

Downloads the entire project code from GitHub to your computer.

cd barcode-detector

Moves into the project folder you just downloaded.

2. Node.js

Easy Recommended
Prerequisites
  • Git Needed to download the project code from GitHub.
  • Node.js Node.js must be installed to use npm. The LTS version is recommended.
npm i barcode-detector

Type this command into your terminal and run it.

src="https://fastly.jsdelivr.net/npm/barcode-detector@3/dist/es/polyfill.min.js"

Type this command into your terminal and run it.

import { BarcodeDetector } from "https://fastly.jsdelivr.net/npm/barcode-detector@3/dist/es/ponyfill.min.js";

Type this command into your terminal and run it.

"barcode-detector/ponyfill": "https://fastly.jsdelivr.net/npm/barcode-detector@3/dist/es/ponyfill.min.js"

Type this command into your terminal and run it.

<script src="https://fastly.jsdelivr.net/npm/barcode-detector@3/dist/iife/ponyfill.min.js"></script>

Type this command into your terminal and run it.

βœ… After running the command, open the address shown in the terminal (usually something like http://localhost:3000) in your browser.

Pulled directly from this repo's README.

// repository documentation