Gathering detailed insights and metrics for gulp-group-aggregate
Gathering detailed insights and metrics for gulp-group-aggregate
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.6
Supply Chain
83.2
Quality
74.5
Maintenance
100
Vulnerability
100
License
JavaScript (74.65%)
CoffeeScript (25.35%)
Total Downloads
91,096
Last Day
28
Last Week
133
Last Month
506
Last Year
4,643
MIT License
2 Stars
24 Commits
1 Forks
1 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
-15.2%
28
Compared to previous day
Last Week
22%
133
Compared to previous week
Last Month
34.6%
506
Compared to previous month
Last Year
18.1%
4,643
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
0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0
Reason
no SAST tool detected
Details
Reason
Found 0/24 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
project is not fuzzed
Details
Reason
branch protection not enabled on development/release branches
Details
Score
Last Scanned on 2025-06-23
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