HYPERJS.AI

COMPRESS

v0.1.0Content-negotiated gzip/brotli compression plugin for Hyper.

$ hyper add compress

Copies 1 file into src/hyper/compress/ and updates hyper.lock.json.

DEPS

FILES

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