JSPM

  • Created
  • Published
  • Downloads 8129
  • Score
    100M100P100Q128484F
  • License MIT

blocklet prevent xss attack

Package Exports

  • @blocklet/xss

Readme

@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.