Research
Security News
Malicious npm Packages Inject SSH Backdoors via Typosquatted Libraries
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
bundle-html-scripts
Advanced tools
Bundle and compress all the scripts in any remote or local html file.
Bundle and compress all scripts from any local or remote server's html file
As command line argument
node /path/to/bundle-html-scripts.js http://example.com/file.html
In code
require('bundle-html-scripts')('http://example.com/file.html')
Both commands above will create a file ./bundle.js
on success.
There should be no problem parsing files with scripts inside comments, multiline included.
On failure keep trying... after 10+ attempts open an issue including the link.
Two parameters may be passed to the script, skip
and verbose
, an array of scripts to skip, and a boolean.
For example to skip compiling bundle.js and bar.js you can use
node ./bundle-html-scripts.js http://example.com/file.html "['bundle.js','bar.js']"
Or to print verbose information node ./bundle-html-scripts.js http://example.com/file.html "[]" true
npm install bundle-html-scripts
|| npm install -g bundle-html-scripts
|| git clone https://github.com/ileathan/bundle-html-scripts && cd bundle-html-scripts && npm install
1.) request
2.) uglify-es
FAQs
Bundle and compress all the scripts in any remote or local html file.
The npm package bundle-html-scripts receives a total of 1 weekly downloads. As such, bundle-html-scripts popularity was classified as not popular.
We found that bundle-html-scripts demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer 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.
Research
Security News
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
Security News
MITRE's 2024 CWE Top 25 highlights critical software vulnerabilities like XSS, SQL Injection, and CSRF, reflecting shifts due to a refined ranking methodology.
Security News
In this segment of the Risky Business podcast, Feross Aboukhadijeh and Patrick Gray discuss the challenges of tracking malware discovered in open source softare.