Socket
Book a DemoInstallSign in
Socket

babel-plugin-xss

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

babel-plugin-xss

babel plugin for preventing XSS.

1.0.0-beta-2
latest
Source
npmnpm
Version published
Weekly downloads
0
Maintainers
1
Weekly downloads
 
Created
Source

Babel Plugin XSS Build Status Codecov npm package

Examples

Install

npm install babel-plugin-xss --save-dev

Use

Add a .babelrc file and write:

{
  "plugins": [
    "babel-plugin-xss"
  ]
}

or pass the plugin with the plugins-flag on CLI

babel-node myfile.js --plugins babel-plugin-xss

Customize

If you want to enable different file extensions, you can define them in your .babelrc file

{
  "plugins": [
    ["babel-plugin-xss", {
      "handler": (content) => {
        return content.replace(/alert/);
      }
    }]
  ]
}

Motivate

If you like this project just give it a star :) I like stars.

Keywords

babel-plugin

FAQs

Package last updated on 01 Jun 2019

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

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.