babel-plugin-xss

1.0.0-beta-2 • Public • Published

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.

Package Sidebar

Install

npm i babel-plugin-xss

Weekly Downloads

17

Version

1.0.0-beta-2

License

MIT

Unpacked Size

6.24 kB

Total Files

8

Last publish

Collaborators

  • ycjcl868