Gathering detailed insights and metrics for gulp-sizereport
Gathering detailed insights and metrics for gulp-sizereport
Gathering detailed insights and metrics for gulp-sizereport
Gathering detailed insights and metrics for gulp-sizereport
Display a report of the size of your project and trigger alarms when the sizes are higher than expected.
npm install gulp-sizereport
Typescript
Module System
Min. Node Version
Node Version
NPM Version
87
Supply Chain
97.8
Quality
73
Maintenance
100
Vulnerability
100
License
JavaScript (100%)
Total Downloads
1,531,009
Last Day
117
Last Week
10,329
Last Month
29,974
Last Year
226,717
39 Stars
32 Commits
7 Forks
3 Watchers
1 Branches
7 Contributors
Updated on Jul 03, 2024
Minified
Minified + Gzipped
Latest Version
1.2.1
Package Id
gulp-sizereport@1.2.1
Unpacked Size
8.29 kB
Size
2.38 kB
File Count
3
NPM Version
5.6.0
Node Version
8.9.4
Cumulative downloads
Total Downloads
Last Day
41%
117
Compared to previous day
Last Week
19%
10,329
Compared to previous week
Last Month
57.1%
29,974
Compared to previous month
Last Year
53.7%
226,717
Compared to previous year
Display a report of the size and Gzipped size of your project and trigger alarms when the sizes are higher than expected.
1$ npm install --save-dev gulp-sizereport
A simple usage
1var gulp = require('gulp'); 2var sizereport = require('gulp-sizereport'); 3 4gulp.task('sizereport', function () { 5 return gulp.src('./dist/*') 6 .pipe(sizereport()); 7});
title
(default: null)
Display a title above the table.
total
(default: true)
Display the last total row.
gzip
(default: false)
Toggle the Gzipped size column.
fail
(default: false)
Allows you to fail your Gulp task if a file exceeds a threshold.
1var gulp = require('gulp'); 2var sizereport = require('gulp-sizereport'); 3 4gulp.task('sizereport', function () { 5 return gulp.src('./dist/*') 6 .pipe(sizereport({ 7 gzip: true 8 })); 9});
minifier
(default: null)
You can add a minifier in order to control the minified size of your source.1var gulp = require('gulp'); 2var sizereport = require('gulp-sizereport'); 3var UglifyJS = require('uglify-js'); 4 5gulp.task('sizereport', function () { 6 return gulp.src('./src/**/*.js') 7 .pipe(sizereport({ 8 minifier: function (contents, filepath) { 9 if (filepath.match(/\.min\./g)) { 10 return contents 11 } 12 return UglifyJS.minify(contents, { fromString: true }).code; 13 } 14 })); 15});
Ideal to control the project size on the fly.
1gulp.task('watch', function () { 2 gulp.watch('./src/**/*.js', [ 'sizereport'] ); 3});
You can place some alerts on values and files. The value is in Bytes.
maxSize
maxGzippedSize
maxMinifiedSize
maxMinifiedGzippedSize
maxTotalSize
maxTotalGzippedSize
maxTotalMinifiedSize
maxTotalMinifiedGzippedSize
1var gulp = require('gulp'); 2var sizereport = require('gulp-sizereport'); 3var UglifyJS = require('uglify-js'); 4 5gulp.task('sizereport', function () { 6 return gulp.src('./dist/*.js') 7 .pipe(sizereport({ 8 gzip: true, 9 minifier: function (contents) { 10 return UglifyJS.minify(contents, { fromString: true }).code; 11 }, 12 '*': { 13 'maxSize': 100000 14 }, 15 'pin.js': { 16 'maxMinifiedSize': 5500, 17 'maxMinifiedGzippedSize': 2500 18 } 19 })); 20});
No vulnerabilities found.
Reason
no binaries found in the repo
Reason
0 existing vulnerabilities detected
Reason
Found 5/26 approved changesets -- score normalized to 1
Reason
0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
security policy file not detected
Details
Reason
license file not detected
Details
Reason
project is not fuzzed
Details
Reason
branch protection not enabled on development/release branches
Details
Reason
SAST tool is not run on all commits -- score normalized to 0
Details
Score
Last Scanned on 2025-06-30
The Open Source Security Foundation is a cross-industry collaboration to improve the security of open source software (OSS). The Scorecard provides security health metrics for open source projects.
Learn More