Socket
Socket
Sign inDemoInstall

jello-optimizer-velocity-xss

Package Overview
Dependencies
1
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    jello-optimizer-velocity-xss

jello velocity xss protect


Version published
Weekly downloads
1
Maintainers
1
Install size
1.63 MB
Created
Weekly downloads
 

Readme

Source

jello-optimizer-velocity-xss

自动将内容区的变量加 $esc.html 包裹。

#script()#end 中的用 $esc.javascript 包裹。

Diff

使用

安装

npm install -g jello-optimizer-velocity-xss

启用插件

fis.config.set('modules.optimizer.vm', 'velocity-xss');

然后使用 release 命令的时候,记得带上 -o 参数。

jello release -o

配置项

目前只有 blacklist 一个配置项。数组格式,元素为正则对象。

fis.config.set('settings.optimizer.velocity-xss', {
  blacklist: [
    /^foo/i, // foo 打头的变量不进行转换。
  ]
});

FAQs

Last updated on 22 Jul 2015

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