barcode-detector
Version:
A Barcode Detection API polyfill that uses ZXing webassembly under the hood
142 lines • 4.47 kB
JSON
{
"name": "barcode-detector",
"description": "A Barcode Detection API polyfill that uses ZXing webassembly under the hood",
"private": false,
"version": "3.0.4",
"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": "1.9.4",
"@changesets/cli": "^2.29.3",
"@commitlint/cli": "^19.8.0",
"@commitlint/config-conventional": "^19.8.0",
"@types/node": "^22.15.14",
"@vitest/browser": "^3.1.3",
"@vitest/coverage-istanbul": "^3.1.3",
"@vitest/ui": "^3.1.3",
"concurrently": "^9.1.2",
"http-server": "^14.1.1",
"lint-staged": "^15.5.2",
"playwright": "^1.52.0",
"prettier": "^3.5.3",
"rimraf": "^6.0.1",
"simple-git-hooks": "^2.13.0",
"start-server-and-test": "^2.0.11",
"tsx": "^4.19.4",
"typescript": "^5.8.3",
"vite": "^6.3.5",
"vitest": "^3.1.3"
},
"dependencies": {
"zxing-wasm": "2.1.2"
},
"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",
"start": "vite preview --outDir ./tests --port $npm_package_config_port -l silent",
"browser": "playwright install chromium firefox",
"test:ci": "pnpm -s browser && start-server-and-test $npm_package_config_port 'vitest --hideSkippedTests'",
"test": "pnpm -s browser && start-server-and-test $npm_package_config_port 'vitest --coverage --hideSkippedTests'",
"test:ui": "pnpm -s browser && start-server-and-test $npm_package_config_port 'vitest --ui --coverage --hideSkippedTests'",
"coverage": "pnpm -s browser && start-server-and-test $npm_package_config_port '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"
}
}