Works with
•JSR Score70%•It is unknown whether this package works with Browsers, Deno, Node.js, Cloudflare Workers, Bun




Published2 years ago (0.215.0)
Functions
Interfaces
I
Interface for serveDir options.
- enableCors: boolean
Enable CORS via the "Access-Control-Allow-Origin" header.
- etagAlgorithm: AlgorithmIdentifier
The algorithm to use for generating the ETag.
- fsRoot: string
Serves the files under the given directory root. Defaults to your current directory.
- headers: string[]
Headers to add to each response
- quiet: boolean
Do not print request level logs. Defaults to false.
- showDirListing: boolean
Enable directory listing.
- showDotfiles: boolean
Serves dotfiles.
- showIndex: boolean
Serves index.html as the index file of the directory.
- urlRoot: string
Specified that part is stripped from the beginning of the requested pathname.
I
Interface for serveFile options.
- etagAlgorithm: AlgorithmIdentifier
The algorithm to use for generating the ETag.
- fileInfo: Deno.FileInfo
An optional FileInfo object returned by Deno.stat. It is used for optimization purposes.