barcode-detector
A Barcode Detection API ponyfill/polyfill that uses ZXing-C++ WebAssembly under the hood.
파일 탐색기
최종 버전 다운로드 (.zip)- config.json
- README.md
- action.yml
- preview-release.yml
- release.yml
- test.yml
- extensions.json
- settings.json
- barcode-detector.png
- build-cjs.ts
- build-iife.ts
- core.ts
- index.ts
- polyfill.ts
- ponyfill.ts
- utils.ts
- vite-env.d.ts
- zxing-exported.ts
- broken.png
- broken.webm
- cats-dogs.png
- cats-dogs.webm
- zero-size.svg
- areCats.ts
- areCatsAndDogs.ts
- drawImageToCanvas.ts
- getBlob.ts
- getCanvas.ts
- getDomImageBitmap.ts
- getDomOffscreenCanvas.ts
- getHtmlImage.ts
- getIframeBlob.ts
- getIframeCanvas.ts
- getIframeHtmlImage.ts
- getIframeImageBitmap.ts
- getIframeImageData.ts
- getIframeOffscreenCanvas.ts
- getIframeSvgImage.ts
- getIframeVideo.ts
- getIframeVideoFrame.ts
- getImageBitmap.ts
- getImageData.ts
- getOffscreenCanvas.ts
- getSvgImage.ts
- getVideo.ts
- getVideoFrame.ts
- messageData.ts
- seekTo.ts
- barcode-detector.spec.ts
- consts.ts
- globalSetup.ts
- index.html
- polyfill.spec.ts
- worker.ts
- .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
# 설치 가이드
1. 코드 내려받기
git clone https://github.com/Sec-ant/barcode-detector
깃허브에서 프로젝트 코드 전체를 내 컴퓨터로 내려받습니다.
cd barcode-detector
방금 내려받은 프로젝트 폴더 안으로 이동합니다.
2. Node.js
쉬움 추천사전 준비물
npm i barcode-detector
이 명령어를 터미널에 그대로 입력해 실행하세요.
src="https://fastly.jsdelivr.net/npm/barcode-detector@3/dist/es/polyfill.min.js"
이 명령어를 터미널에 그대로 입력해 실행하세요.
import { BarcodeDetector } from "https://fastly.jsdelivr.net/npm/barcode-detector@3/dist/es/ponyfill.min.js";
이 명령어를 터미널에 그대로 입력해 실행하세요.
"barcode-detector/ponyfill": "https://fastly.jsdelivr.net/npm/barcode-detector@3/dist/es/ponyfill.min.js"
이 명령어를 터미널에 그대로 입력해 실행하세요.
<script src="https://fastly.jsdelivr.net/npm/barcode-detector@3/dist/iife/ponyfill.min.js"></script>
이 명령어를 터미널에 그대로 입력해 실행하세요.
명령어 실행 후 터미널에 나타나는 주소(보통 http://localhost:3000 형태)를 브라우저에서 열어보세요.
이 레포의 README에 적힌 실제 명령어를 그대로 가져왔습니다.
// repository documentation
Was this content helpful?
(0 ratings)
