@nexusts/static
v0.9.4
Published
Static file serving (ETag / Range / MIME)
Readme
@nexusts/static
NexusTS — Bun-native fullstack framework
Description
Static file serving (ETag / Range / MIME).
ETag, Range (HTTP 206), MIME detection, path-traversal protection. Serve assets from a directory.
Install
This module is part of the NexusTS monorepo. Each module is published as its own npm package under the @nexusts/ scope.
Most apps start with just the core:
bun add @nexusts/coreThen add this module only if you need it:
bun add @nexusts/staticPeer dependencies
None. No external dependencies.
Usage
import { /* public API */ } from "@nexusts/static";See the user guide and the example app for a working demo.
License
MIT — see the root LICENSE.
