@orveth/security
v0.1.0
Published
Minimal security helpers (request ID, response headers) for Orveth.
Maintainers
Readme
@orveth/security
Small, explicit helpers for Orveth HTTP apps: request correlation IDs and a minimal security header set (not a Helmet replacement).
Install
npm install @orveth/security @orveth/serverUsage
import { Orveth } from "@orveth/server";
import { requestId, securityHeaders } from "@orveth/security";
const app = new Orveth();
app.use(requestId());
app.use(securityHeaders());
app.get("/", async (ctx) => {
await ctx.text(ctx.requestId ?? "—");
});
await app.listen(3000);License
MIT — VLODIA
