{ "name": "barcode-detector-api-polyfill", "version": "1.0.20", "private": false, "description": "A polyfill for the BarcodeDetector API using the ZXing library", "scripts": { "clean": "shx rm -rf dist", "build": "npm run clean && npm run test && npm run build:esm && npm run build:cjs && npm run build:browser && npm run build:copy", "build:esm": "tsc --build tsconfig.esm.json", "build:cjs": "tsc --build tsconfig.cjs.json", "build:browser": "esbuild src/browser.ts --outfile=dist/browser/barcode-detector-polyfill.min.js --bundle --tree-shaking --target=firefox112,safari16 --minify --sourcemap", "build:copy": "shx cp README.md dist && shx cp package.json dist && shx cp LICENSE dist", "lint": "eslint src __tests__", "test": "jest", "test:coverage": "jest --coverage" }, "keywords": [ "barcode", "detector", "reader", "api", "polyfill", "browser" ], "repository": { "type": "git", "url": "https://github.com/StefanNedelchev/barcode-detector-polyfill.git" }, "author": "Stefan Nedelchev", "license": "MIT", "types": "./cjs/index.d.ts", "main": "./cjs/index.js", "unpkg": "./browser/barcode-detector-polyfill.min.js", "exports": { ".": { "import": { "types": "./esm/index.d.ts", "default": "./esm/index.js" }, "require": { "types": "./cjs/index.d.ts", "default": "./cjs/index.js" } } }, "dependencies": { "@zxing/browser": "^0.1.5", "@zxing/library": "^0.21.3" }, "devDependencies": { "@types/jest": "^30.0.0", "@types/node": "^20.19.26", "@typescript-eslint/eslint-plugin": "^7.18.0", "@typescript-eslint/parser": "^7.18.0", "canvas": "^3.2.0", "esbuild": "^0.25.12", "eslint": "^8.57.1", "jest": "^30.2.0", "jest-canvas-mock": "^2.5.2", "jest-environment-jsdom": "^30.2.0", "shx": "^0.4.0", "ts-jest": "^29.4.6", "typescript": "~5.4.5" } }