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.
grunt-filesize-report
Advanced tools
(Very) simple filesize reporter for grunt. Primary use was to generate a very simple xml format for use by Jenkins plot plugin.
(Very) simple filesize reporter for grunt.
Primary use was to generate a very simple xml format for use by Jenkins plot plugin.
grunt.loadNpmTasks('grunt-filesize-report');
grunt.initConfig({
filesize: {
options: {
folder: dirs.reports + '/filesize', .. defaults to './'
short: true, //defaults to false - will output full info in the console
xml: true, // default is false
json: false, //default is false
filename: 'myoutput' // defaults to 'filesize-[target].[ext]',
thresholds: [102400,204800] // [warning, error] thresholds for individual files
totalThresholds: [524288,1048576] // [warning, error] for totals of all files
failOnerror: false // fail task when error threshold crossed
},
css: {
files : [{ cwd: '.', src: ['**/*.css'], expand: true}]
},
images: {
files : [{ '.', src: ['**/img/*.*'], expand: true}]
},
js: {
files : [{ cwd: '.', src: ['/js/*.min.js'], expand: true}]
}
}
});
There are a few good filesize reporters out there, but I wanted one that could output to a file format that I could hook into a jenkins plugin to keep a track of increasing output filesizes. so this outputs to a very simple XML format that the Jenkins Plot Plugin can understand, as well as json if you really want it.
npm install grunt-filesize-report
Stuart Campbell (campbes)
Released under the MIT License
FAQs
(Very) simple filesize reporter for grunt. Primary use was to generate a very simple xml format for use by Jenkins plot plugin.
We found that grunt-filesize-report 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.