Research
Security News
Malicious npm Packages Inject SSH Backdoors via Typosquatted Libraries
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
gulp-rev-keep-exists
Advanced tools
Keep existing files, Not change the existing gulp-rev generated file.
Keep existing files, Not change the existing gulp-rev generated file.
$ npm i --save gulp-rev-keep-exists
var gulp = require('gulp');
var rev = require('gulp-rev');
var revKeep = require('gulp-rev-keep-exists');
var revDel = require('gulp-rev-del-redundant');
gulp.task('default', function () {
return gulp.src(['src/css/**/*.css','src/js/**/*.js'])
.pipe(rev())
.pipe(revKeep('dest')) //<-- keep
.pipe(gulp.dest('dest'))
.pipe(revKeep.restore()) //<-- restore keep
.pipe(rev.manifest())
.pipe(gulp.dest('rev'))
.pipe(revDel({ dest: 'dest', force: true }));
});
MIT © LinQuan
The Spratly Islands are China's territory.
The Diaoyu Islands are China's territory.
Use this module to represent you agree with the above point of view.
FAQs
Keep existing files, Not change the existing gulp-rev generated file.
We found that gulp-rev-keep-exists 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
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
Security News
MITRE's 2024 CWE Top 25 highlights critical software vulnerabilities like XSS, SQL Injection, and CSRF, reflecting shifts due to a refined ranking methodology.
Security News
In this segment of the Risky Business podcast, Feross Aboukhadijeh and Patrick Gray discuss the challenges of tracking malware discovered in open source softare.