Installations
npm install sog-gulp-rev-collector
Developer Guide
Typescript
No
Module System
CommonJS
Min. Node Version
>=0.10.0
Node Version
6.9.1
NPM Version
3.10.8
Score
65.4
Supply Chain
73.1
Quality
70.1
Maintenance
50
Vulnerability
99.1
License
Releases
Unable to fetch releases
Contributors
Unable to fetch Contributors
Languages
JavaScript (100%)
Developer
mayong43111
Download Statistics
Total Downloads
1,500
Last Day
1
Last Week
3
Last Month
6
Last Year
87
GitHub Statistics
1 Commits
1 Forks
1 Watching
1 Branches
1 Contributors
Bundle Size
139.22 kB
Minified
36.86 kB
Minified + Gzipped
Package Meta Information
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
Total Downloads
Cumulative downloads
Total Downloads
1,500
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
Daily Downloads
Weekly Downloads
Monthly Downloads
Yearly Downloads
Dependencies
4
Static asset revision replace their links.
Install
1$ npm install --save-dev sog-gulp-rev-collector
Usage
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
- Warn: no pull requests merged into dev branch
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
- Warn: no security policy file detected
- Warn: no security file to analyze
- Warn: no security file to analyze
- Warn: no security file to analyze
Reason
license file not detected
Details
- Warn: project does not have a license file
Reason
project is not fuzzed
Details
- Warn: no fuzzer integrations found
Reason
branch protection not enabled on development/release branches
Details
- Warn: branch protection not enabled for branch 'master'
Score
2.6
/10
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