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.
github.com/treagod/minify-assets
minify-assets-go
is a simple Go script designed to minify CSS and JavaScript files in a given directory. It replaces the original asset files with their minified versions, helping to reduce file sizes and improve load times for web applications.
It's a simple wrapper around the minify tooling{:target="_blank"}.
.css
and .js
files in the specified directory.To use this script, you need to have Go installed on your system. Clone the repository and initialize the Go module:
git clone https://github.com/treagod/minify-assets.git
cd minify-assets
go mod tidy
To run the script, provide the root directory containing your assets as an argument:
go run cmd/minify_assets/minify-assets-go.go /path/to/your/assets
This will traverse the specified directory, minify all .css and .js files, and overwrite the original files with their minified versions.
This project is licensed under the MIT License. See the LICENSE file for more details.
Contributions are welcome! Feel free to open issues or submit pull requests to improve the tool.
FAQs
Unknown package
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.