Built and signed on GitHub ActionsBuilt and signed on GitHub Actions
Built and signed on GitHub Actions
latest
denoland/stdUtilities for building HTTP servers
This package works with DenoIt is unknown whether this package works with Bun
JSR Score
94%
Published
19 hours ago (1.0.8)
Contains functions serveDir
and serveFile
for
building a static file server.
This module can also be used as a CLI. If you want to run it directly:
> # start server > deno run --allow-net --allow-read --allow-sys jsr:@std/http/file-server > # show help > deno run jsr:@std/http/file-server --help
If you want to install and run:
> # install > deno install --allow-net --allow-read --allow-sys --global jsr:@std/http/file-server > # start server > file-server > # show help > file-server --help
I
ServeDirOptions
Interface for serveDir options.
I
ServeFileOptions
Options for serveFile
.
Add Package
deno add jsr:@std/http
Import symbol
import * as mod from "@std/http/file-server";
---- OR ----
Import directly with a jsr specifier
import * as mod from "jsr:@std/http/file-server";
Add Package
bunx jsr add @std/http
Import symbol
import * as mod from "@std/http/file-server";