【文件属性】:
文件名称:catsup:通过从 HTML 中提取内联脚本来修复 CSP 错误
文件大小:3KB
文件格式:ZIP
更新时间:2021-06-08 14:28:47
JavaScript
番茄酱
作为输入
{
filename: 'HTML filename',
contents: 'HTML file contents'
}
退货
{
html: {
filename: 'HTML filename',
contents: 'HTML file contents with scripts extracted and sourced'
},
js: [
{
filename: 'Extracted script filename, based on HTML filename',
contents: 'Extracted script file contents'
},
...
]
}
示例用法
var catsup = require('catsup')
catsup({
filename: 'file.html',
【文件预览】:
catsup-master
----Readme.md(707B)
----LICENSE(755B)
----test()
--------test.js(440B)
----.gitignore(12B)
----index.js(637B)
----package.json(626B)