turbo-express-js 1.0.9 → 1.0.10

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -7,6 +7,8 @@
7
7
 
8
8
  > Made with ❤️ by Mike Karypidis
9
9
 
10
+
11
+
10
12
  ## ✨ Features
11
13
 
12
14
  - Zero external dependency setup (JSON, CORS, Cookie, Upload built-in)
@@ -20,6 +22,7 @@
20
22
  ---
21
23
 
22
24
 
25
+
23
26
  ## 🔧 Installation
24
27
 
25
28
  To install TurboServer, simply run the following command:
@@ -28,6 +31,8 @@ To install TurboServer, simply run the following command:
28
31
  npm install turbo-express-js
29
32
  ```
30
33
 
34
+
35
+
31
36
  ## 👌 Getting Started
32
37
 
33
38
  Here's a simple example of how to create a basic server using TurboServer:
@@ -47,6 +52,8 @@ Here's a simple example of how to create a basic server using TurboServer:
47
52
  });
48
53
  ```
49
54
 
55
+
56
+
50
57
  # 🔬 Comparison: Express.js vs Turbo Express JS
51
58
 
52
59
  | Feature | Express.js | Turbo Express JS |
@@ -62,6 +69,8 @@ Here's a simple example of how to create a basic server using TurboServer:
62
69
  | Locales (i18n) | ❌ | ✅ |
63
70
  | Performance Focus | ✅ | ✅ |
64
71
 
72
+
73
+
65
74
  ## 📦 TypeScript Support
66
75
 
67
76
  Turbo Express JS works perfectly with TypeScript.
@@ -72,8 +81,13 @@ It includes a ready-to-use `index.d.ts` file with support for:
72
81
  - Autocomplete & type checking
73
82
  - Full OOP method overriding
74
83
 
84
+
85
+
86
+
75
87
  ### ✅ Basic Example in TypeScript
76
88
 
89
+
90
+
77
91
  ```ts
78
92
  // main.ts
79
93
  import TurboServer = require("turbo-express-js");
@@ -89,6 +103,8 @@ app.listen(3000, () => {
89
103
  });
90
104
  ```
91
105
 
106
+
107
+
92
108
  # Clustering
93
109
 
94
110
  TurboServer is built to support clustering out of the box. By passing a number to the TurboServer constructor, you can specify how many worker processes to spawn for your application.
@@ -101,6 +117,8 @@ In the example above, const app = new TurboServer(2) tells TurboServer to start
101
117
 
102
118
  To take full advantage of the clustering feature, it's important to make sure your application is stateless and doesn't rely on local variables or in-memory storage. With proper configuration, clustering can help your application handle a large number of requests with ease.
103
119
 
120
+
121
+
104
122
  # 🔍 Middlewares
105
123
  TurboServer includes a number of built-in middlewares that you can use to add functionality to your application. Here are some of out of the box middlewares:
106
124
 
package/changelog.md CHANGED
@@ -15,5 +15,6 @@
15
15
 
16
16
  # 1.0.8 docs changes
17
17
 
18
- # 1.0.9
19
- 1. [25/4/2025] update clusters, 0 argument mean no clusters.
18
+ # 1.0.9 - 1.0.10
19
+ 1. [25/4/2025] update clusters, 0 argument mean no clusters.
20
+ 2. [25/4/2025] first typescript support
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "turbo-express-js",
3
- "version": "1.0.9",
3
+ "version": "1.0.10",
4
4
  "description": "Turbo Express JS - Performance, Security, Easy-to-use Web Server Framework",
5
5
  "main": "index.js",
6
6
  "directories": {