-
Notifications
You must be signed in to change notification settings - Fork 545
/
package.json
81 lines (81 loc) · 2.8 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
{
"name": "nsfwjs",
"version": "4.2.1",
"unpkg": "dist/browser/nsfwjs.min.js",
"description": "Detect NSFW content client-side",
"type": "commonjs",
"module": "dist/esm/index.js",
"main": "dist/cjs/index.js",
"exports": {
"import": "./dist/esm/index.js",
"require": "./dist/cjs/index.js"
},
"scripts": {
"lint": "tslint -p . -t verbose",
"build:esm": "tsc -p ./tsconfig.esm.json && node ./scripts/add-extensions.mjs",
"build:cjs": "tsc -p ./tsconfig.cjs.json",
"build": "yarn build:esm && yarn build:cjs && node ./scripts/add-nested-package-json.mjs",
"bundle:mobilenet_v2": "node ./scripts/bundle-model.mjs mobilenet_v2 1",
"bundle:mobilenet_v2_mid": "node ./scripts/bundle-model.mjs mobilenet_v2_mid 2",
"bundle:inception_v3": "node ./scripts/bundle-model.mjs inception_v3 6",
"bundle:models": "yarn bundle:mobilenet_v2 && yarn bundle:mobilenet_v2_mid && yarn bundle:inception_v3",
"postbuild": "yarn bundle:models",
"pretest": "yarn build && node ./scripts/pre-test.mjs",
"test": "jest",
"posttest": "node ./scripts/post-test.mjs",
"toc": "doctoc .",
"contributors:add": "all-contributors add",
"contributors:generate": "all-contributors generate",
"prep": "yarn && yarn build && cd examples/nsfw_demo/ && yarn add ../../ && cd -",
"scriptbundle": "browserify ./dist/cjs/nsfwjs.js -s nsfwjs -o ./dist/browser/bundle.js",
"minbundle": "terser dist/browser/bundle.js -c -m -o dist/browser/nsfwjs.min.js",
"bundle": "yarn build && yarn scriptbundle && yarn minbundle",
"shipit:precheck": "if [ \"$npm_config_user_agent\" != \"${npm_config_user_agent#*yarn}\" ]; then echo 'Use `npm run shipit` instead of yarn.' && exit 1; fi",
"shipit": "npm run shipit:precheck && yarn bundle && np"
},
"repository": {
"type": "git",
"url": "git+https://github.com/infinitered/nsfwjs.git"
},
"peerDependencies": {
"@tensorflow/tfjs": "^4.0.0",
"buffer": "^6.0.3"
},
"devDependencies": {
"@tensorflow/tfjs": "^4.0.0",
"@types/jest": "^28.1.6",
"all-contributors-cli": "^6.20.0",
"babel-core": "^6.26.3",
"babel-plugin-transform-runtime": "~6.23.0",
"browserify": "^17.0.0",
"buffer": "^6.0.3",
"doctoc": "^2.2.0",
"esbuild": "^0.24.0",
"jest": "^28.1.3",
"jpeg-js": "^0.4.4",
"np": "^10.0.0",
"seedrandom": "~3.0.5",
"terser": "^5.14.2",
"ts-jest": "^28.0.7",
"ts-node": "~10.9.1",
"tslint": "~6.1.3",
"typescript": "5.6.2"
},
"packageManager": "[email protected]",
"keywords": [
"NSFW",
"JavaScript",
"ML",
"Machine",
"Learning",
"Tensorflow",
"JS"
],
"author": "Gant Laborde",
"license": "MIT",
"bugs": {
"url": "https://github.com/infinitered/nsfwjs/issues"
},
"homepage": "https://nsfwjs.com",
"dependencies": {}
}