Security News
Input Validation Vulnerabilities Dominate MITRE's 2024 CWE Top 25 List
MITRE's 2024 CWE Top 25 highlights critical software vulnerabilities like XSS, SQL Injection, and CSRF, reflecting shifts due to a refined ranking methodology.
github.com/syhv-git/minifier
This package implements a Minifier for tdewolff's Minify project. The Minifier takes three parameters, the output dest., the mime type, and the paths to minify. The package will create a new file at the dest. containing the minified program files.
The Minifier performs a recursive walk on directories provided in the variadac string parameter. All files are read into memory and after all paths have been walked, the contents are minified and written to the output file.
The minifier will ignore the destination file if it exists in the tree being enumerated
The Minifier will not throw an error when handling multiple mime types per call (but your projects will ;)
Run the following command from your project directory
go get -u github.com/syhv-git/minifier
You can then import and use the package with the minifier.Minifier() function.
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.
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.
Research
Security News
A threat actor's playbook for exploiting the npm ecosystem was exposed on the dark web, detailing how to build a blockchain-powered botnet.