xss-clean-types
v1.0.2
Published
Type definitions for xss-clean package
Maintainers
Readme
xss-clean-types
Type definitions for the xss-clean package.
Installation
npm install xss-clean-typesor with Yarn:
yarn add xss-clean-typesUsage
In your TypeScript project, import xss-clean as an Express middleware:
import express from "express";
import xssClean from "xss-clean";
const app = express();
// Apply xss-clean middleware
app.use(xssClean());
app.get("/", (req, res) => {
res.send("Hello, world!");
});
app.listen(3000, () => {
console.log("Server is running on port 3000");
});Why This Package?
The xss-clean package does not provide official TypeScript definitions. This package (xss-clean-types) fills that gap by providing proper TypeScript support.
License
This project is licensed under the MIT License.
