servez 1.14.0 → 1.14.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.
Files changed (2) hide show
  1. package/README.md +11 -1
  2. package/package.json +2 -2
package/README.md CHANGED
@@ -12,6 +12,10 @@
12
12
 
13
13
  # Installing globally:
14
14
 
15
+ !!!Note!!!: you need to install [node.js](https://nodejs.org).
16
+ I recommend installing node via [nvm](https://github.com/nvm-sh/nvm)(mac/linux)
17
+ or [nvm-windows](https://github.com/coreybutler/nvm-windows)(windows)
18
+
15
19
  Installation via `npm`:
16
20
 
17
21
  npm install servez -g
@@ -49,7 +53,7 @@ Using `npx` you can run servez without installing it first:
49
53
  * `--cors` Include CORS headers (defaults to `true`, `--no-cors` to disable)
50
54
 
51
55
  * `--local` make serve only accessible from this machine. The default
52
- is to serve publicly. (0.0.0.0 vs 127.0.0.1)
56
+ is to serve publicly. (0.0.0.0 vs 127.0.0.1)
53
57
 
54
58
  * `--index` Display index.html for folders if it exists (defaults to `true`, `--no-index` to disable)
55
59
 
@@ -57,6 +61,12 @@ is to serve publicly. (0.0.0.0 vs 127.0.0.1)
57
61
 
58
62
  * `--brotli` serve `somefile.br` in place of `somefile`
59
63
 
64
+ * `--unity-hack` ignore .gz and .br when computing content type. (defaults to `true`, `--no-unity-hack` to disable)
65
+
66
+ * `--shared-array-buffers` include headers 'Cross-Origin-Opener-Policy': 'same-origin' and 'Cross-Origin-Embedder-Policy': 'require-corp'.
67
+
68
+ * `--header=<name>:<value>` extra headers to include eg `--header=Content-Language:de-DE'`
69
+
60
70
  * `--robots` Provide a /robots.txt if one does not exist. (defaults to `true`. `--no-robots` to disable)
61
71
 
62
72
  * `--hidden` Show files that start with `.`
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "servez",
3
- "version": "1.14.0",
3
+ "version": "1.14.2",
4
4
  "description": "A simple command line server to replace http-server",
5
5
  "scripts": {
6
6
  "start": "node ./bin/servez"
@@ -26,7 +26,7 @@
26
26
  "ansi-colors": "^4.1.1",
27
27
  "color-support": "^1.1.3",
28
28
  "optionator": "^0.8.2",
29
- "servez-lib": "^2.6.0"
29
+ "servez-lib": "^2.7.0"
30
30
  },
31
31
  "bin": {
32
32
  "servez": "./bin/servez"