Installations
npm install gulp-group-aggregate
Developer Guide
Typescript
No
Module System
CommonJS
Min. Node Version
>=0.9
Node Version
8.3.0
NPM Version
5.0.1
Score
66.8
Supply Chain
83.2
Quality
74.7
Maintenance
100
Vulnerability
100
License
Releases
Unable to fetch releases
Contributors
Unable to fetch Contributors
Languages
JavaScript (74.65%)
CoffeeScript (25.35%)
Love this project? Help keep it running — sponsor us today! 🚀
Developer
amitport
Download Statistics
Total Downloads
89,545
Last Day
16
Last Week
119
Last Month
534
Last Year
4,203
GitHub Statistics
MIT License
2 Stars
24 Commits
1 Forks
2 Watchers
1 Branches
1 Contributors
Updated on Aug 16, 2017
Bundle Size
108.97 kB
Minified
30.43 kB
Minified + Gzipped
Package Meta Information
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
Total Downloads
Cumulative downloads
Total Downloads
89,545
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
Daily Downloads
Weekly Downloads
Monthly Downloads
Yearly Downloads
Dev Dependencies
2
gulp-group-aggregate

a group and aggregate plugin for gulp
Usage
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});
API
gulp-group-aggregate is a function(options)
that returns a read-write stream
. The options argument should include two functions: group and aggregate.
options.group
Type: function(File)
returns string
Receives a vinyl from the stream and returns a string which represents its group.
options.aggregate
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
- Info: project has a license file: LICENSE:0
- Info: FSF or OSI recognized license: MIT License: LICENSE:0
Reason
9 existing vulnerabilities detected
Details
- Warn: Project is vulnerable to: GHSA-9vvw-cc9w-f27h
- Warn: Project is vulnerable to: GHSA-gxpj-cx7g-858c
- Warn: Project is vulnerable to: GHSA-h6ch-v84p-w6p9
- Warn: Project is vulnerable to: GHSA-qh2h-chj9-jffq
- Warn: Project is vulnerable to: GHSA-hxm2-r34f-qmc5
- Warn: Project is vulnerable to: GHSA-f8q6-p94x-37v3
- Warn: Project is vulnerable to: GHSA-vh95-rmgr-6w4m
- Warn: Project is vulnerable to: GHSA-xvch-5gv4-984h
- Warn: Project is vulnerable to: GHSA-w9mr-4mfr-499f
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/24 approved changesets -- score normalized to 0
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
project is not fuzzed
Details
- Warn: no fuzzer integrations found
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
branch protection not enabled on development/release branches
Details
- Warn: branch protection not enabled for branch 'master'
Score
1.9
/10
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