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-query-clean
Advanced tools
Clean for gulp-query
Delete files and folders
npm install gulp-query gulp-query-clean
Paste the code into your gulpfile.js
and configure it
let build = require('gulp-query')
, clean = require('gulp-query-clean')
;
cocktail(function (query) {
query.plugins([clean])
.clean('cache/**/*','cache')
.clean(['public/css/admin.css/','css/undercover.css'])
.clean({
delete: [
'public/css/*.css',
'public/js/*.js',
// we don't want to clean this file though so we negate the pattern
'!public/js/jquery.js',
],
name: 'main'
})
;
});
And feel the freedom
gulp
gulp --production // For production
gulp clean // Only for clean
gulp clean:cache // Only for cache's task
gulp clean:admin clean:main watch // Watching change only for admin and main
...
.clean({
name: "task_name", // For gulp clean:task_name
delete: "clean/**/*", // ["clean/**/*", "clean2/**/*",...]
})
FAQs
Delete files and folders
We found that gulp-query-clean 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.