Security News
GitHub Removes Malicious Pull Requests Targeting Open Source Repositories
GitHub removed 27 malicious pull requests attempting to inject harmful code across multiple open source repositories, in another round of low-effort attacks.
gulp-group-aggregate
Advanced tools
a group and aggregate plugin for gulp
First, install gulp-group-aggregate
as a development dependency:
npm install --save-dev gulp-group-aggregate
Then, add it to your gulpfile.js
:
var path = require('path');
var groupAggregate = require('gulp-group-aggregate');
var processFiles = function (files) {...};
gulp.task('folderWrap', function(){
gulp.src(...)
.pipe(groupAggregate({
group: function (file){
// group by the directory name of each file
return path.basename(path.dirname(file.path));
},
aggregate: function (group, files){
// create a new file by processing the grouped files
return {
path: group + '.html',
contents: new Buffer(processFiles(files))
};
}
}));
.pipe(gulp.dest(...));
});
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.
FAQs
a group and aggregate plugin for gulp (and other streams)
The npm package gulp-group-aggregate receives a total of 27 weekly downloads. As such, gulp-group-aggregate popularity was classified as not popular.
We found that gulp-group-aggregate demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
GitHub removed 27 malicious pull requests attempting to inject harmful code across multiple open source repositories, in another round of low-effort attacks.
Security News
RubyGems.org has added a new "maintainer" role that allows for publishing new versions of gems. This new permission type is aimed at improving security for gem owners and the service overall.
Security News
Node.js will be enforcing stricter semver-major PR policies a month before major releases to enhance stability and ensure reliable release candidates.