replace express with itty router - its 2x faster

This commit is contained in:
Proddy
2023-12-10 14:52:15 +01:00
parent 2629471a56
commit 513d0e982e
7 changed files with 3324 additions and 706 deletions

View File

@@ -1,19 +1,20 @@
{
"name": "api",
"version": "1.0.0",
"version": "3.6.0",
"description": "mock api for EMS-ESP",
"author": "proddy",
"main": "server.js",
"main": "server.ts",
"license": "MIT",
"scripts": {
"dev": "node --watch ./server.js localhost 3080",
"test": "echo \"Error: no test specified\" && exit 1"
"standalone": "bun --watch server.ts"
},
"dependencies": {
"@msgpack/msgpack": "^2.8.0",
"compression": "^1.7.4",
"express": "^4.18.2",
"multer": "^1.4.5-lts.1"
"busboy": "^1.6.0",
"itty-router": "^4.0.23"
},
"packageManager": "yarn@4.0.2"
"packageManager": "yarn@4.0.2",
"devDependencies": {
"@types/multer": "^1.4.11"
}
}