UNPKG

barcode-detector

Version:

A Barcode Detection API polyfill that uses ZXing webassembly under the hood

140 lines 4.16 kB
{ "name": "barcode-detector", "description": "A Barcode Detection API polyfill that uses ZXing webassembly under the hood", "private": false, "version": "3.2.2", "type": "module", "files": [ "./dist" ], "main": "./dist/cjs/index.js", "module": "./dist/es/index.js", "exports": { ".": { "import": "./dist/es/index.js", "require": "./dist/cjs/index.js", "default": "./dist/es/index.js" }, "./ponyfill": { "import": "./dist/es/ponyfill.js", "require": "./dist/cjs/ponyfill.js", "default": "./dist/es/ponyfill.js" }, "./polyfill": { "import": "./dist/es/polyfill.js", "require": "./dist/cjs/polyfill.js", "default": "./dist/es/polyfill.js" }, "./pure": { "import": "./dist/es/ponyfill.js", "require": "./dist/cjs/ponyfill.js", "default": "./dist/es/ponyfill.js" }, "./side-effects": { "import": "./dist/es/polyfill.js", "require": "./dist/cjs/polyfill.js", "default": "./dist/es/polyfill.js" } }, "typesVersions": { "*": { "ponyfill": [ "./dist/es/ponyfill.d.ts", "./dist/cjs/ponyfill.d.ts" ], "polyfill": [ "./dist/es/polyfill.d.ts", "./dist/cjs/polyfill.d.ts" ], "pure": [ "./dist/es/ponyfill.d.ts", "./dist/cjs/ponyfill.d.ts" ], "side-effects": [ "./dist/es/polyfill.d.ts", "./dist/cjs/polyfill.d.ts" ] } }, "repository": { "type": "git", "url": "git+https://github.com/Sec-ant/barcode-detector.git" }, "homepage": "https://github.com/Sec-ant/barcode-detector", "bugs": { "url": "https://github.com/Sec-ant/barcode-detector/issues", "email": "zezhengwu@proton.me" }, "keywords": [ "es6", "qrcode", "barcode", "barcode-detector", "wasm", "polyfill", "zxing", "esmodule", "webassembly" ], "author": { "name": "Ze-Zheng Wu" }, "license": "MIT", "config": { "port": "18080" }, "publishConfig": { "access": "public" }, "devDependencies": { "@biomejs/biome": "2.5.8", "@changesets/cli": "^3.0.0", "@commitlint/cli": "^21.2.2", "@commitlint/config-conventional": "^21.2.2", "@types/node": "^26.2.0", "@vitest/browser": "^4.1.10", "@vitest/browser-playwright": "^4.1.10", "@vitest/coverage-istanbul": "^4.1.10", "@vitest/ui": "^4.1.10", "concurrently": "^10.0.5", "lint-staged": "^17.3.0", "playwright": "^1.62.1", "prettier": "^3.9.6", "rimraf": "^6.1.3", "simple-git-hooks": "^2.13.1", "tsx": "^4.23.12", "typescript": "^7.0.2", "vite": "^8.2.1", "vitest": "^4.1.10" }, "dependencies": { "zxing-wasm": "3.1.3" }, "scripts": { "update-hooks": "simple-git-hooks", "dev": "vite dev", "lint": "biome lint .", "type-check": "tsc --noEmit --emitDeclarationOnly false", "format:prettier": "prettier . --write", "format:biome": "biome format . --write", "format": "conc \"pnpm:format:prettier\" \"pnpm:format:biome\"", "check:biome": "biome check --write .", "check": "conc \"pnpm:format:prettier\" \"pnpm:check:biome\"", "clear:dist": "rimraf dist", "prebuild": "pnpm -s check && pnpm -s type-check && pnpm -s clear:dist", "build:es": "vite build", "build:cjs": "tsx ./scripts/build-cjs.ts", "build:iife": "tsx ./scripts/build-iife.ts", "build": "conc \"pnpm:build:es\" \"pnpm:build:cjs\" \"pnpm:build:iife\"", "postbuild:es": "tsc --declarationDir ./dist/es", "postbuild:cjs": "tsc --declarationDir ./dist/cjs", "browser": "playwright install chromium firefox", "test:ci": "pnpm -s browser && vitest --hideSkippedTests", "test": "pnpm -s browser && vitest --coverage --hideSkippedTests", "test:ui": "pnpm -s browser && vitest --ui --coverage --hideSkippedTests", "coverage": "pnpm -s browser && vitest run --coverage --hideSkippedTests", "bump-zxing-wasm": "pnpm add -E zxing-wasm@latest", "bump-biome:latest": "pnpm add -DE @biomejs/biome@latest", "bump-biome:nightly": "pnpm add -DE @biomejs/biome@nightly" } }