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-change
Advanced tools
File content change utility for GulpJS.
Allow to easily alter the content of a Gulp files stream with a sync/async callback
npm install gulp-change
var gulp = require('gulp');
var change = require('change');
function performChange(content) {
return content.replace(/foo/g, 'FOO');
}
gulp.task('change', function() {
return gulp.src('src/*.html')
.pipe(change(performChange))
.pipe(gulp.dest('build/'))
});
var gulp = require('gulp');
var change = require('change');
function performChange(content, done) {
content.replace(/foo/g, 'FOO');
done(null, content);
}
gulp.task('change', function() {
return gulp.src('src/*.html')
.pipe(change(performChange))
.pipe(gulp.dest('build/'))
});
The callback receive a custom context (this
) populated with:
original file object from Gulp' stream
file name
original file content
FAQs
allow file content manipulations
The npm package gulp-change receives a total of 10,392 weekly downloads. As such, gulp-change popularity was classified as popular.
We found that gulp-change 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.