You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
**jsserve** is `serve` with superpowers: same simple interface, but you can write too.
17
+
**servejss** is `serve` with superpowers: same simple interface, but you can write too.
18
18
19
19
## Install
20
20
21
21
```bash
22
-
npm install -g jsserve
22
+
npm install -g servejss
23
23
```
24
24
25
25
Or use directly with npx:
26
26
27
27
```bash
28
-
npx jsserve
28
+
npx servejss
29
29
```
30
30
31
31
## Usage
32
32
33
33
```bash
34
34
# Serve current directory (read + write enabled)
35
-
jsserve
35
+
servejss
36
36
37
37
# Serve specific directory
38
-
jsserve ./public
38
+
servejss ./public
39
39
40
40
# Custom port
41
-
jsserve -p 8080
41
+
servejss -p 8080
42
42
43
43
# Specify port and directory
44
-
jsserve -l 3000 ./dist
44
+
servejss -l 3000 ./dist
45
45
46
46
# Read-only mode (exactly like npx serve)
47
-
jsserve --read-only
47
+
servejss --read-only
48
48
```
49
49
50
50
## Output
51
51
52
52
```
53
-
jsserve
53
+
servejss
54
54
55
55
Directory: /home/user/project
56
56
@@ -84,7 +84,7 @@ curl -X PUT -H 'If-None-Match: *' -d "New file" http://localhost:3000/new.txt
84
84
## Options
85
85
86
86
```
87
-
Usage: jsserve [options] [directory]
87
+
Usage: servejss [options] [directory]
88
88
89
89
Options:
90
90
-v, --version Output version number
@@ -109,7 +109,7 @@ Options:
109
109
110
110
## Comparison with serve
111
111
112
-
| Feature | serve |jsserve|
112
+
| Feature | serve |servejss|
113
113
|---------|-------|---------|
114
114
| Static file serving | ✅ | ✅ |
115
115
| Directory listings | ✅ | ✅ |
@@ -128,7 +128,7 @@ Options:
128
128
129
129
### Conditional Requests
130
130
131
-
jsserve supports ETags for efficient caching and safe concurrent updates:
131
+
servejss supports ETags for efficient caching and safe concurrent updates:
132
132
133
133
```bash
134
134
# Get a file with its ETag
@@ -145,10 +145,10 @@ curl -X PUT -H 'If-Match: "a1b2c3"' -d "new content" http://localhost:3000/file.
145
145
146
146
### Upgrade to Solid
147
147
148
-
jsserve is powered by [JSS (JavaScript Solid Server)](https://github.com/JavaScriptSolidServer/JavaScriptSolidServer). Enable full Solid protocol support:
148
+
servejss is powered by [JSS (JavaScript Solid Server)](https://github.com/JavaScriptSolidServer/JavaScriptSolidServer). Enable full Solid protocol support:
149
149
150
150
```bash
151
-
jsserve --solid
151
+
servejss --solid
152
152
```
153
153
154
154
This enables:
@@ -163,25 +163,25 @@ This enables:
163
163
```bash
164
164
# Serve your project with write support for uploads
0 commit comments