Socket
Socket
Sign inDemoInstall

xssjs

Package Overview
Dependencies
118
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    xssjs

xss string escape/unescape js


Version published
Weekly downloads
0
decreased by-100%
Maintainers
1
Created
Weekly downloads
 

Readme

Source

xssjs

xss escape/unescape javascript library

How to build your own xssjs

Clone a copy of the main xssjs git repo by running:

git clone git://github.com/kazikai/xssjs.git

Install rollup npm global

cs xssjs
npm i -g rollup
npm i

Enter the xssjs directory and run the build script:

npm run build

build

npm run build

development

npm run dev

test

npm test or npm run test

How to use

Bower

bower install xssjs

Browser

<script src="dist/xss.js"></script>
let cleanString = xss.excape('dirty string');
let originString = xss.unescape(cleanString);

Node.js

npm i --save xssjs
const xss = require('xssjs');
let cleanString = xss.excape('dirty string');
let originString = xss.unescape(cleanString);

Keywords

FAQs

Last updated on 13 Oct 2021

Did you know?

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

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc