Socket
Socket
Sign inDemoInstall

ebabel-prevent-xss

Package Overview
Dependencies
0
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    ebabel-prevent-xss

Processes an input string to prevent Cross Site Scripting injection attacks (XSS). Returns a safe version of that input.


Version published
Weekly downloads
4
increased by300%
Maintainers
1
Install size
44.9 kB
Created
Weekly downloads
 

Changelog

Source

1.0.1

  • Add Travis build pipeline and badge.
  • Add linting.

Readme

Source

ebabel-prevent-xss

Build Status

Processes an input string to prevent Cross Site Scripting injection attacks (XSS). Returns a safe version of that input.

Module install and usage in your game

Install

npm install --save ebabel-prevent-xss

Usage

const preventXss = require('ebabel-prevent-xss');

const result = preventXss('<script>alert("password: " + secret.password)</script>');

Development of this module

Fork this repository on Github, git clone your repository, checkout the develop branch, and when you are done, submit a pull request from your repository develop branch to this repository develop branch.

  • fork this repository on github.com
  • git clone your forked repository.
  • git checkout develop

First step when developing

npm install

Run linting and unit tests

npm test

An html coverage report is to be found in the coverage folder.

Generate documentation

npm run jsdoc

The generated documentation is to be found in the docs folder.

Keywords

FAQs

Last updated on 30 Sep 2018

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