
Research
/Security News
Toptal’s GitHub Organization Hijacked: 10 Malicious Packages Published
Threat actors hijacked Toptal’s GitHub org, publishing npm packages with malicious payloads that steal tokens and attempt to wipe victim systems.
gulp-group-concat
Advanced tools
Concatenates and filters groups of files into a smaller number of files.
##Concatenate files that match minimatch-styled file globs
Groups all files into either final.inline.js
and final.test.js
.
var gulp = require('gulp'),
groupConcat = require('gulp-group-concat');
gulp.src('**/*.js')
.pipe(groupConcat({
'final.inline.js': ['**/*.js', '!**/*.test.js'],
'final.test.js': '**/*.test.js'
}))
.pipe(gulp.dest('dest'));
##Duplicate files that match more than one file glob
Put only components into components.js
but include everything in all.js
.
var gulp = require('gulp'),
groupConcat = require('gulp-group-concat');
gulp.src('**/*.js')
.pipe(groupConcat({
'components.js': '**/components/*.js',
'all.js': '**/*.js'
}))
.pipe(gulp.dest('dest'));
##Filter files that do not match any file glob
Include all files that are not tests into no-tests.js
.
var gulp = require('gulp'),
groupConcat = require('gulp-group-concat');
gulp.src('**/*.js')
.pipe(groupConcat({
'no-tests.js': '!**/*.test.js'
}))
.pipe(gulp.dest('dest'));
##Supports source-maps
Source-maps are duplicated, filtered, and concatenated as expects.
var gulp = require('gulp'),
groupConcat = require('gulp-group-concat'),
sourcemaps = require('gulp-sourcemaps'),
please = require('gulp-pleeease');
gulp.src('./test/fixtures/*.css')
.pipe(sourcemaps.init())
.pipe(please()) //or anything else that supports gulp-sourcemaps
.pipe(groupConcat({
'final.inline.css': '**/*.inline.css',
'final.css': '**/*.css'
}))
.pipe(sourcemaps.write('.'))
.pipe(gulp.dest('dest'));
##Install
npm install gulp-group-concat
##Running Tests
To run the basic tests, just run mocha
normally.
This assumes you've already installed the local npm packages with npm install
.
FAQs
Concats groups of files into a smaller number of files
The npm package gulp-group-concat receives a total of 1,726 weekly downloads. As such, gulp-group-concat popularity was classified as popular.
We found that gulp-group-concat 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.
Research
/Security News
Threat actors hijacked Toptal’s GitHub org, publishing npm packages with malicious payloads that steal tokens and attempt to wipe victim systems.
Research
/Security News
Socket researchers investigate 4 malicious npm and PyPI packages with 56,000+ downloads that install surveillance malware.
Security News
The ongoing npm phishing campaign escalates as attackers hijack the popular 'is' package, embedding malware in multiple versions.