Security News
Fluent Assertions Faces Backlash After Abandoning Open Source Licensing
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.
rehype-remove-external-script-content
Advanced tools
rehype plugin to remove content of external JavaScript `script` elements
Remove content of external JavaScript script
elements.
This package is ESM only:
Node 12+ is needed to use it and it must be imported
ed instead of required
d.
npm:
npm install rehype-remove-external-script-content
This package exports no identifiers.
The default export is rehypeRemoveExternalScriptContent
On the API:
import {unified} from 'unified'
import rehypeParse from 'rehype-parse'
+import rehypeRemoveExternalScriptContent from 'rehype-remove-external-script-content'
import rehypeStringify from 'rehype-stringify'
unified()
.use(rehypeParse)
+ .use(rehypeRemoveExternalScriptContent)
.use(rehypeStringify)
.process('<span>some html</span>', function (err, file) {
console.error(report(err || file))
console.log(String(file))
})
On the CLI:
rehype input.html --use remove-external-script-content --output output.html
<script src="index.js">Hello!</script>
<script src="index.js"></script>
See contributing.md
in rehypejs/.github
for ways
to get started.
See support.md
for ways to get help.
This project has a code of conduct. By interacting with this repository, organization, or community you agree to abide by its terms.
FAQs
rehype plugin to remove content of external JavaScript `script` elements
The npm package rehype-remove-external-script-content receives a total of 17,055 weekly downloads. As such, rehype-remove-external-script-content popularity was classified as popular.
We found that rehype-remove-external-script-content demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 open source maintainers collaborating on the project.
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.
Security News
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.
Research
Security News
Socket researchers uncover the risks of a malicious Python package targeting Discord developers.
Security News
The UK is proposing a bold ban on ransomware payments by public entities to disrupt cybercrime, protect critical services, and lead global cybersecurity efforts.