dx-server 0.10.1 → 0.10.2
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 +6 -13
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -1,32 +1,25 @@
|
|
|
1
1
|
# dx-server
|
|
2
2
|
|
|
3
|
-
A modern, unopinionated, and performant Node.js server framework built on AsyncLocalStorage for elegant
|
|
3
|
+
A modern, unopinionated, and performant Node.js server framework built on AsyncLocalStorage for elegant API interfaces.
|
|
4
4
|
|
|
5
5
|
[](https://www.npmjs.com/package/dx-server)
|
|
6
6
|
[](https://opensource.org/licenses/MIT)
|
|
7
7
|
|
|
8
8
|
## Features
|
|
9
9
|
|
|
10
|
-
-
|
|
10
|
+
- 🎯 **Elegant API interface** - No need to pass req/res objects through middleware chains
|
|
11
11
|
- 🔗 **Chainable middleware** - Elegant middleware composition with [jchain](https://www.npmjs.com/package/jchain)
|
|
12
|
-
-
|
|
12
|
+
- 🚀 **Context-based architecture** - Access request/response from anywhere using AsyncLocalStorage
|
|
13
13
|
- 🔄 **Express compatible** - Use existing Express middleware and applications
|
|
14
14
|
- 📦 **Zero dependencies** - No runtime dependencies, all functionality built-in
|
|
15
15
|
- 🛡️ **Built-in body parsing** - JSON, text, URL-encoded, and raw body parsing with size limits
|
|
16
|
-
- 🗂️ **Static file serving** - Efficient static file handling with ETag support
|
|
17
|
-
- 🔀 **Modern routing** - URLPattern-based routing
|
|
16
|
+
- 🗂️ **Static file serving** - Efficient static file handling with ETag, Range, and Last-Modified support
|
|
17
|
+
- 🔀 **Modern routing** - URLPattern-based routing
|
|
18
18
|
|
|
19
19
|
## Installation
|
|
20
20
|
|
|
21
21
|
```bash
|
|
22
|
-
|
|
23
|
-
npm install dx-server jchain
|
|
24
|
-
|
|
25
|
-
# yarn
|
|
26
|
-
yarn add dx-server jchain
|
|
27
|
-
|
|
28
|
-
# pnpm
|
|
29
|
-
pnpm add dx-server jchain
|
|
22
|
+
npm i dx-server jchain
|
|
30
23
|
```
|
|
31
24
|
|
|
32
25
|
### URLPattern Support
|