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
- Updated egg.json with v3.0.0 and current description
- Updated README to show both JSR and deno.land/x installation methods
- Removed egg.json from JSR publish exclusions
- Both registries now supported equally
Copy file name to clipboardExpand all lines: README.md
+29-15Lines changed: 29 additions & 15 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -13,9 +13,11 @@
13
13
14
14
**Denoliver** is a small, zero config dev & static file server with live reloading written in TypeScript for Deno intended for prototyping and Single Page Applications.
15
15
16
+
> **Version 3.0+**: Now available on both [JSR](https://jsr.io/@joakimunge/denoliver) and [deno.land/x](https://deno.land/x/denoliver) with modern Deno APIs and improved TypeScript support!
17
+
16
18
## Prerequisites
17
19
18
-
### To run this you need to have [Deno](https://deno.land/) 1.19 or later installed.
> NOTE: Deno is a secure runtime by default. You need to include the `--allow-net`, `--allow-read`, `--allow-write`, and `--allow-sys` flags to make sure Denoliver can serve your directory and display network addresses.
Running denoliver without any arguments will start a server on port `3000` and serve files from the current working directory.
48
+
49
+
> **Note**: Deno is a secure runtime by default. You need to include the `--allow-net`, `--allow-read`, `--allow-write`, and `--allow-run` flags to make sure Denoliver can serve your directory and display network addresses.
_You don't need it! You can still use Denoliver as normal without this flag._
50
60
51
-
Denoliver uses `Deno.networkInterfaces()`(available since Deno 1.19) to display your local network address. This API requires the `--allow-sys` permission. If you don't provide this flag, Denoliver will still work but won't be able to show the network address in the startup message.
61
+
Denoliver uses `Deno.networkInterfaces()` to display your local network address. This API requires the `--allow-sys` permission. If you don't provide this flag, Denoliver will still work but won't be able to show the network address in the startup message.
52
62
53
63
## Running
54
64
@@ -106,7 +116,7 @@ Interceptors can be a single function, for example:
"description": "A simple, dependency free static file server for Deno with possibly the worst name ever.",
3
+
"description": "A small, zero config dev & static file server with live reloading written in TypeScript for Deno intended for prototyping and Single Page Applications.",
0 commit comments