🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
DemoInstallSign in
Socket

@blocklet/xss

Package Overview
Dependencies
Maintainers
2
Versions
35
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@blocklet/xss

blocklet prevent xss attack

0.1.36
latest
npm
Version published
Weekly downloads
767
45.27%
Maintainers
2
Weekly downloads
 
Created
Source

@blocklet/xss

@blocklet/xss is a package that integrates the xss refer to the official documentation.

Development

Install In Blocklet

# You can use npm / yarn
pnpm add @blocklet/xss

Install Dependencies

To install the required dependencies, run the following command:

pnpm i

Build Packages

To build the packages, execute the following command:

pnpm build

Build, Watch, and Run Development Server

For building, watching changes, and running the development server, use the following command:

pnpm run dev

Example

const { xss } = require('@blocklet/xss');
const express = require('express');

const app = express();
// ---- body-parser ----

app.use(xss());

License

This package is licensed under the MIT license.

Keywords

blocklet

FAQs

Package last updated on 20 May 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