Socket
Book a DemoInstallSign in
Socket

@types/express-xss-sanitizer

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@types/express-xss-sanitizer

TypeScript definitions for express-xss-sanitizer

2.0.0
ts5.1
ts5.2
ts5.3
ts5.4
ts5.5
ts5.6
ts5.7
ts5.8
ts5.9
ts6.0
latest
Source
npmnpm
Version published
Weekly downloads
578
29.89%
Maintainers
1
Weekly downloads
 
Created
Source

Installation

npm install --save @types/express-xss-sanitizer

Summary

This package contains type definitions for express-xss-sanitizer (https://github.com/AhmedAdelFahim/express-xss-sanitizer#readme).

Details

Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/express-xss-sanitizer.

index.d.ts

interface XssSanitizerOptions {
    allowedTags?: string[];
    allowedAttributes?: Record<string, string[]>;
    allowedKeys?: string[];
}

declare function xss(options?: XssSanitizerOptions): (req: any, res: any, next: any) => void;
declare function sanitize<T = unknown>(data: T, options?: XssSanitizerOptions): T;

export { sanitize, xss, type XssSanitizerOptions };

Additional Details

  • Last updated: Sat, 19 Jul 2025 00:04:39 GMT
  • Dependencies: @types/node

Credits

These definitions were written by Felipe Fernandes.

FAQs

Package last updated on 19 Jul 2025

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.