jandapress/package.json

60 行
2.3 KiB
JSON

{
"name": "jandapress",
"version": "1.0.19",
"description": "Experimental doujin API with gather in mind",
"main": "build/src/index.js",
"scripts": {
"build": "rm -rf build && tsc",
"start": "node build/src/index.js",
"test": "ts-node test/test.ts",
"test:cf": "ts-node test/nhentaiCookietest.ts",
"start:prod": "npm run build && node build/src/index.js",
"start:dev": "ts-node-dev src/index.ts",
"lint": "npx eslint . --ext .ts",
"lint:fix": "npx eslint . --fix",
"test:nhentai": "npx start-server-and-test 3000 \"curl -v http://localhost:3000/nhentai/get?book=177013 | jq '.'\"",
"test:pururin": "npx start-server-and-test 3000 \"curl -v http://localhost:3000/pururin/get?book=47226 | jq '.'\"",
"test:hentaifox": "npx start-server-and-test 3000 \"curl -v http://localhost:3000/hentaifox/get?book=59026 | jq '.'\"",
"test:asmhentai": "npx start-server-and-test 3000 \"curl -v http://localhost:3000/asmhentai/get?book=308830 | jq '.'\"",
"test:hentai2read": "npx start-server-and-test 3000 \"curl -v http://localhost:3000/hentai2read/get?book=butabako_shotaone_matome_fgo_hen/1 | jq '.'\"",
"test:simply-hentai": "npx start-server-and-test 3000 \"curl -v http://localhost:3000/simply-hentai/get?book=fate-grand-order/fgo-sanbunkatsuhou/all-pages | jq '.'\"",
"test:3hentai": "npx start-server-and-test 3000 \"curl -v http://localhost:3000/3hentai/get?book=608979 | jq '.'\""
},
"keywords": [],
"author": "sinkaroid",
"repository": {
"type": "git",
"url": "git+https://github.com/sinkaroid/jandapress.git"
},
"license": "MIT",
"dependencies": {
"cheerio": "^1.0.0-rc.11",
"cors": "^2.8.5",
"express": "^4.18.1",
"express-rate-limit": "^6.4.0",
"express-slow-down": "^1.4.0",
"phin": "^3.6.1",
"pino": "^8.7.0",
"pino-pretty": "^9.1.1"
},
"devDependencies": {
"@types/cors": "^2.8.12",
"@types/express": "^4.17.14",
"@types/express-slow-down": "^1.3.2",
"@types/node": "^18.11.13",
"@types/tough-cookie": "^4.0.2",
"@typescript-eslint/eslint-plugin": "^5.18.0",
"@typescript-eslint/parser": "^5.18.0",
"dotenv": "^16.0.1",
"eslint": "^8.29.0",
"npx": "^10.2.2",
"start-server-and-test": "^1.14.0",
"ts-node": "^10.8.1",
"ts-node-dev": "^2.0.0",
"typescript": "4.9.4"
},
"engines": {
"node": ">=14"
}
}