Gathering detailed insights and metrics for sog-gulp-rev-collector
Gathering detailed insights and metrics for sog-gulp-rev-collector
Gathering detailed insights and metrics for sog-gulp-rev-collector
Gathering detailed insights and metrics for sog-gulp-rev-collector
npm install sog-gulp-rev-collector
Typescript
Module System
Min. Node Version
Node Version
NPM Version
65.4
Supply Chain
73.1
Quality
70.1
Maintenance
50
Vulnerability
99.1
License
JavaScript (100%)
Total Downloads
1,500
Last Day
1
Last Week
3
Last Month
6
Last Year
87
1 Commits
1 Forks
1 Watching
1 Branches
1 Contributors
Minified
Minified + Gzipped
Latest Version
0.0.1
Package Id
sog-gulp-rev-collector@0.0.1
Size
1.98 kB
NPM Version
3.10.8
Node Version
6.9.1
Cumulative downloads
Total Downloads
Last day
0%
1
Compared to previous day
Last week
0%
3
Compared to previous week
Last month
50%
6
Compared to previous month
Last year
-12.1%
87
Compared to previous year
4
Static asset revision replace their links.
1$ npm install --save-dev sog-gulp-rev-collector
We can use gulp-rev to cache-bust several assets and generate manifest files for them. Then using sog-gulp-rev-collector we can collect data from several manifest files and replace links to assets in html templates.
1var gulp = require('gulp'); 2var rev = require('gulp-rev'); 3 4gulp.task('css', function () { 5 return gulp.src('src/css/*.css') 6 .pipe(rev()) 7 .pipe(gulp.dest('dist/css')) 8 .pipe( rev.manifest() ) 9 .pipe( gulp.dest( 'rev/css' ) ); 10}); 11 12gulp.task('scripts', function () { 13 return gulp.src('src/js/*.js') 14 .pipe(rev()) 15 .pipe(gulp.dest('dist/js')) 16 .pipe( rev.manifest() ) 17 .pipe( gulp.dest( 'rev/js' ) ); 18}); 19 20... 21 22var revCollector = require('sog-gulp-rev-collector'); 23var minifyHTML = require('gulp-minify-html'); 24 25gulp.task('rev', function () { 26 return gulp.src(['templates/**/*.html']) 27 .pipe( revCollector(['rev/**/*.json']) ) 28 .pipe( minifyHTML({ 29 empty:true, 30 spare:true 31 }) ) 32 .pipe( gulp.dest('dist') ); 33});
No vulnerabilities found.
Reason
no binaries found in the repo
Reason
0 existing vulnerabilities detected
Reason
no SAST tool detected
Details
Reason
0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0
Reason
Found 0/1 approved changesets -- 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
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