# @blocklet/xss

> blocklet prevent xss attack

Latest version **0.15.4** (published 2026-04-26) · MIT license · 0 weekly downloads

## Install

```sh
npm install @blocklet/xss
pnpm add @blocklet/xss
yarn add @blocklet/xss
bun add @blocklet/xss
```

## Health

**Score 60/100 (C)** — status: active.

Positive: has types; esm support; no vulnerabilities; high quality score.

Warnings: low downloads; pre 1.0.

## Facts

| | |
|---|---|
| Version | 0.15.4 |
| Published | 2026-04-26 |
| First published | 2024-08-23 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Dependencies | 2 |
| Unpacked size | 20.4 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | arcblock |
| Maintainers | wangshijun, gxw |
| Keywords | blocklet, xss |

## Links

- npm: https://www.npmjs.com/package/@blocklet/xss
- npm.io page: https://npm.io/package/@blocklet/xss

## Dependencies (2)

- [xss](https://npm.io/package/xss.md) ^1.0.15
- [lodash](https://npm.io/package/lodash.md) ^4.17.21

## Recent versions

- 0.15.4 (latest) — 2026-04-26
- 0.3.16 — 2026-01-04
- 0.3.15 — 2025-12-22
- 0.3.14 — 2025-12-17
- 0.3.13 — 2025-12-15
- 0.3.12 — 2025-12-05
- 0.3.11 — 2025-11-28
- 0.3.10 — 2025-11-24
- 0.3.9 — 2025-11-14
- 0.3.8 — 2025-11-13
- 0.3.7 — 2025-11-10
- 0.3.6 — 2025-11-06
- 0.3.5 — 2025-11-06
- 0.3.4 — 2025-11-04
- 0.3.3 — 2025-10-30
- … 51 more at https://npm.io/package/@blocklet/xss/versions

## README

# @blocklet/xss

**@blocklet/xss** is a package that integrates the **xss** refer to the [official documentation](https://www.npmjs.com/package/xss).

## 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

```jsx
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.

---
_Source: https://npm.io/package/@blocklet/xss · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
