forked from justadudewhohacks/opencv4nodejs
-
Notifications
You must be signed in to change notification settings - Fork 51
/
Copy pathpackage.json
104 lines (104 loc) · 4.07 KB
/
package.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
{
"name": "@u4/opencv4nodejs",
"version": "7.1.2",
"description": "Asynchronous OpenCV 3.x / 4.x nodejs bindings with JavaScript and TypeScript API.",
"keywords": [
"opencv",
"cv",
"computer vision",
"face",
"detection",
"recognition",
"machine",
"learning",
"neural",
"network",
"async",
"typescript"
],
"type": "commonjs",
"exports": {
".": {
"types": "./typings/index.d.ts",
"require": "./cjs/lib/opencv4nodejs.js",
"import": "./esm/lib/opencv4nodejs.js"
}
},
"contributors": [
"Uriel Chemouni <[email protected]> (https://uriel.ovh/)",
"justadudewhohacks (https://github.com/justadudewhohacks)"
],
"funding": "https://github.com/sponsors/urielch",
"license": "MIT",
"repository": {
"type": "git",
"url": "git+https://github.com/UrielCh/opencv4nodejs"
},
"bugs": {
"url": "https://github.com/UrielCh/opencv4nodejs/issues"
},
"bin": {
"build-opencv": "bin/install.js"
},
"homepage": "https://github.com/UrielCh/opencv4nodejs#readme",
"main": "./cjs/lib/opencv4nodejs.js",
"module": "./esm/lib/opencv4nodejs.js",
"typings": "./typings/index.d.ts",
"scripts": {
"build": "tsc --pretty --project tsconfig.json && tsc --pretty --project tsconfig-esm.json && npm run copyfile",
"build-types": "rimraf types && tsc --pretty --project tsconfig-types.json",
"copyfile": "shx cp extra/meta.mjs esm/lib/meta.js && shx cp extra/meta.cjs cjs/lib/meta.js",
"prepack": "npm run build",
"install_old": "node bin/install.js auto",
"install_Mac": "CXXFLAGS=\"-std=c++17 -Wno-c++11-narrowing -Wno-c++17-extensions -Wno-c++17-attribute-extensions\" node ./bin/install.js --version 4.5.3 build",
"install_default": "node bin/install.js rebuild",
"install_ubuntu": "echo call: sudo apt install libopencv-dev; build-opencv --incDir /usr/include/opencv4/ --libDir /lib/x86_64-linux-gnu/ --binDir=/usr/bin/ --nobuild rebuild",
"install_macm1": "node bin/install.js --version 4.6.0 --flag=\"-DCMAKE_SYSTEM_PROCESSOR=arm64 -DCMAKE_OSX_ARCHITECTURES=arm64 -DWITH_FFMPEG=ON\" rebuild",
"install_cuda": "cross-env OPENCV4NODEJS_DISABLE_AUTOBUILD= node bin/install.js --version 4.6.0 --flags=\"-DWITH_CUDA=ON -DWITH_CUDNN=ON -DOPENCV_DNN_CUDA=ON -DCUDA_FAST_MATH=ON -DWITH_FFMPEG=ON\" rebuild",
"install_4_6_0_cuda_30XX": "cross-env OPENCV4NODEJS_DISABLE_AUTOBUILD= node bin/install.js --keepsource --version 4.6.0 --cuda --cudaArch=8.6 rebuild",
"test": "cd test && pnpm install && pnpm run test",
"samples": "cd examples && pnpm install && npm run build && node ./src/templateMatch/multiMatchBench.js && node ./src/templateMatch/multiMatchColision.js && node ./src/applyColorMap.js && node ./src/asyncMatchFeatures.js && node ./src/faceDetect/asyncFaceDetection.js",
"do-build": "npm run build && node bin/install.js --version 4.6.0 --jobs MAX build",
"do-rebuild": "npm run build && node bin/install.js --version 4.6.0 --jobs MAX rebuild",
"lint": "eslint examples/**/*.ts src/**/*.ts typings/**/*.ts ",
"fmt": "clang-format -i **/*.h **/*.cc",
"clean": "node-gyp clean",
"rebuild": "node-gyp rebuild",
"cleanjs": "rimraf {examples}/**/*.{d.ts,js,map} {cjs,esm}/{lib,install}",
"build-debug": "npm run build && BINDINGS_DEBUG=true node bin/install.js rebuild",
"checkExports": "npx @arethetypeswrong/cli $(npm pack)",
"ncu": "npx --yes npm-check-updates -i",
"publish-next": "npm publish --dry-run --tag next"
},
"dependencies": {
"@u4/opencv-build": "1.1.1",
"glob": "^11.0.0",
"nan": "^2.20.0",
"node-gyp": "^10.2.0",
"picocolors": "^1.1.0"
},
"devDependencies": {
"@eslint/js": "^9.10.0",
"@types/node": "^22.5.4",
"@types/progress": "^2.0.7",
"axios": "^1.7.7",
"cross-env": "^7.0.3",
"eslint": "^9.10.0",
"progress": "^2.0.3",
"rimraf": "^6.0.1",
"shx": "^0.3.4",
"typescript": "^5.6.2",
"typescript-eslint": "8.5.0"
},
"files": [
"cc",
"cjs",
"esm",
"src/**/*.xml",
"bin/*.js",
"typings",
"types",
"binding.gyp",
"binding_old.gyp"
]
}