Gathering detailed insights and metrics for gulp-group-aggregate
Gathering detailed insights and metrics for gulp-group-aggregate
npm install gulp-group-aggregate
Typescript
Module System
Min. Node Version
Node Version
NPM Version
66.8
Supply Chain
83.2
Quality
74.7
Maintenance
100
Vulnerability
100
License
JavaScript (74.65%)
CoffeeScript (25.35%)
Love this project? Help keep it running — sponsor us today! 🚀
Total Downloads
89,545
Last Day
16
Last Week
119
Last Month
534
Last Year
4,203
MIT License
2 Stars
24 Commits
1 Forks
2 Watchers
1 Branches
1 Contributors
Updated on Aug 16, 2017
Minified
Minified + Gzipped
Latest Version
0.2.0
Package Id
gulp-group-aggregate@0.2.0
Size
6.96 kB
NPM Version
5.0.1
Node Version
8.3.0
Cumulative downloads
Total Downloads
Last Day
33.3%
16
Compared to previous day
Last Week
6.3%
119
Compared to previous week
Last Month
85.4%
534
Compared to previous month
Last Year
10.4%
4,203
Compared to previous year
2
a group and aggregate plugin for gulp
First, install gulp-group-aggregate
as a development dependency:
1npm install --save-dev gulp-group-aggregate
Then, add it to your gulpfile.js
:
1var path = require('path'); 2var groupAggregate = require('gulp-group-aggregate'); 3 4var processFiles = function (files) {...}; 5 6gulp.task('folderWrap', function(){ 7 gulp.src(...) 8 .pipe(groupAggregate({ 9 group: function (file){ 10 // group by the directory name of each file 11 return path.basename(path.dirname(file.path)); 12 }, 13 aggregate: function (group, files){ 14 // create a new file by processing the grouped files 15 return { 16 path: group + '.html', 17 contents: new Buffer(processFiles(files)) 18 }; 19 } 20 })); 21 .pipe(gulp.dest(...)); 22});
gulp-group-aggregate is a function(options)
that returns a read-write stream
. The options argument should include two functions: group and aggregate.
Type: function(File)
returns string
Receives a vinyl from the stream and returns a string which represents its group.
Type: function(string, File[])
returns File.options
Receives a group string as returned from group calls and an array of all the files associated with it. Returns a vinyl constructor.options object. The options will be used to construct a file which will be pushed through the stream.
No vulnerabilities found.
Reason
no binaries found in the repo
Reason
license file detected
Details
Reason
9 existing vulnerabilities detected
Details
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/24 approved changesets -- score normalized to 0
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
project is not fuzzed
Details
Reason
security policy file not detected
Details
Reason
branch protection not enabled on development/release branches
Details
Score
Last Scanned on 2025-02-10
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