Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

xssjs

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

xssjs

xss string escape/unescape js

  • 0.2.1
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
22
increased by1000%
Maintainers
1
Weekly downloads
 
Created
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

Package last updated on 13 Oct 2021

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

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

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc