Gathering detailed insights and metrics for gulp-sizereport
Gathering detailed insights and metrics for gulp-sizereport
npm install gulp-sizereport
Typescript
Module System
Min. Node Version
Node Version
NPM Version
JavaScript (100%)
Total Downloads
1,434,443
Last Day
1,476
Last Week
6,872
Last Month
25,280
Last Year
182,492
39 Stars
32 Commits
7 Forks
4 Watching
1 Branches
7 Contributors
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
-46.8%
1,476
Compared to previous day
Last week
-16.4%
6,872
Compared to previous week
Last month
48.5%
25,280
Compared to previous month
Last year
29.1%
182,492
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-01-27
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