COMPRESS
v0.1.0 — Content-negotiated gzip/brotli compression plugin for Hyper.
$ hyper add compress
Copies 1 file into src/hyper/compress/ and updates hyper.lock.json.
DEPS
- registry: core
FILES
- compress/index.ts
README
@hyper/compress
Content-negotiated gzip/brotli compression plugin for Hyper.
Install
Components are installed as source into your repo, not pulled from npm:
bunx hyper add compress
Wires the alias @hyper/compress to src/hyper/compress/ (configurable in hyper.config.json). See hyperjs.ai for the full registry.
Usage
import { Hyper } from "@hyper/core"
import { compress } from "@hyper/compress"
export default new Hyper()
.use(compress())
.listen(3000)
Docs
See the main README and docs/ for guides and integration recipes.
License
MIT
MANIFEST
- /r/compress.json — latest
- /r/compress@0.1.0.json — immutable