@nexusts/shield
v0.9.4
Published
CSRF / HSTS / CSP security middleware
Readme
@nexusts/shield
NexusTS — Bun-native fullstack framework
Description
CSRF / HSTS / CSP security middleware.
Security headers (HSTS, CSP, X-Frame-Options, Referrer-Policy) + CSRF token middleware (HMAC-signed). Apply with app.use('*', shield()).
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/shieldPeer dependencies
None. No external dependencies.
Usage
import { /* public API */ } from "@nexusts/shield";See the user guide and the example app for a working demo.
License
MIT — see the root LICENSE.
