{
  "name": "barcode-detector-api-polyfill",
  "version": "1.2.0",
  "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.2.0",
    "@zxing/library": "^0.22.0"
  },
  "devDependencies": {
    "@eslint/js": "^10.0.1",
    "@stylistic/eslint-plugin": "^5.10.0",
    "@types/jest": "^30.0.0",
    "@types/node": "^20.19.43",
    "canvas": "^3.2.3",
    "esbuild": "^0.28.1",
    "eslint": "^10.6.0",
    "jest": "^30.4.2",
    "jest-canvas-mock": "^2.5.2",
    "jest-environment-jsdom": "^30.4.1",
    "shx": "^0.4.0",
    "ts-jest": "^29.4.11",
    "typescript": "~5.8.3",
    "typescript-eslint": "^8.62.1"
  }
}
