UNPKG

react-native-image-code-scanner

Version:

A lightweight, high-performance React Native library for scanning QR codes and barcodes from images with automatic preprocessing for optimal recognition.

176 lines (175 loc) 4.53 kB
{ "name": "react-native-image-code-scanner", "version": "1.1.0", "description": "A lightweight, high-performance React Native library for scanning QR codes and barcodes from images with automatic preprocessing for optimal recognition.", "main": "./lib/module/index.js", "types": "./lib/typescript/src/index.d.ts", "exports": { ".": { "source": "./src/index.tsx", "types": "./lib/typescript/src/index.d.ts", "default": "./lib/module/index.js" }, "./package.json": "./package.json" }, "scripts": { "test": "jest", "test:coverage": "jest --coverage", "typecheck": "tsc --noEmit", "lint": "eslint \"**/*.{js,ts,tsx}\"", "lint:fix": "eslint \"**/*.{js,ts,tsx}\" --fix", "format": "prettier --write \"**/*.{js,jsx,ts,tsx,json,md}\"", "format:check": "prettier --check \"**/*.{js,jsx,ts,tsx,json,md}\"", "clean": "del-cli android/build example/android/build example/android/app/build example/ios/build lib node_modules/.cache", "prepare": "bob build", "prepublishOnly": "yarn clean && yarn typecheck && yarn lint && yarn test && yarn build", "build": "bob build", "release": "release-it", "release:dry": "release-it --dry-run", "release:beta": "release-it --preRelease=beta" }, "keywords": [ "react-native", "ios", "android", "qr-code", "barcode", "scanner", "image-processing", "vision", "ml-kit", "qr-scanner", "barcode-scanner", "turbo-module", "new-architecture" ], "repository": { "type": "git", "url": "git+https://github.com/nguyenthanhan/react-native-image-code-scanner.git" }, "author": "Heimer Nguyen <heimer.nguyen@gmail.com> (https://github.com/nguyenthanhan)", "license": "MIT", "bugs": { "url": "https://github.com/nguyenthanhan/react-native-image-code-scanner/issues" }, "homepage": "https://github.com/nguyenthanhan/react-native-image-code-scanner#readme", "publishConfig": { "registry": "https://registry.npmjs.org/" }, "devDependencies": { "@commitlint/config-conventional": "^19.6.0", "@eslint/compat": "^1.2.7", "@eslint/eslintrc": "^3.3.0", "@eslint/js": "^9.22.0", "@evilmartians/lefthook": "^1.5.0", "@react-native-community/cli": "15.0.0", "@react-native/babel-preset": "0.79.2", "@react-native/eslint-config": "^0.79.2", "@release-it/conventional-changelog": "^9.0.2", "@types/jest": "^29.5.5", "@types/react": "^18.3.12", "commitlint": "^19.6.1", "del-cli": "^5.1.0", "eslint": "^9.22.0", "eslint-config-prettier": "^9.1.0", "eslint-plugin-prettier": "^5.2.3", "jest": "^29.7.0", "prettier": "^3.0.3", "react": "18.3.1", "react-native": "0.79.2", "react-native-builder-bob": "^0.40.13", "release-it": "^17.10.0", "turbo": "^1.10.7", "typescript": "^5.3.0" }, "peerDependencies": { "react": ">=17.0.0", "react-native": ">=0.70.0" }, "workspaces": [ "example" ], "packageManager": "yarn@3.6.1", "jest": { "preset": "react-native", "modulePathIgnorePatterns": [ "<rootDir>/example/node_modules", "<rootDir>/lib/" ] }, "commitlint": { "extends": [ "@commitlint/config-conventional" ], "rules": { "header-max-length": [ 2, "always", 150 ] } }, "release-it": { "git": { "commitMessage": "chore: release ${version}", "tagName": "v${version}" }, "npm": { "publish": true }, "github": { "release": true }, "plugins": { "@release-it/conventional-changelog": { "preset": { "name": "angular" } } } }, "prettier": { "quoteProps": "consistent", "singleQuote": true, "tabWidth": 2, "trailingComma": "es5", "useTabs": false }, "react-native-builder-bob": { "source": "src", "output": "lib", "targets": [ [ "module", { "esm": true } ], [ "typescript", { "project": "tsconfig.build.json" } ] ] }, "codegenConfig": { "name": "ImageCodeScannerSpec", "type": "modules", "jsSrcsDir": "src", "android": { "javaPackageName": "com.imagecodescanner" }, "ios": { "interfaceOnly": false } }, "engines": { "node": ">=18" }, "create-react-native-library": { "languages": "kotlin-objc", "type": "turbo-module", "version": "0.52.1" } }