
Security News
vlt Launches "reproduce": A New Tool Challenging the Limits of Package Provenance
vlt's new "reproduce" tool verifies npm packages against their source code, outperforming traditional provenance adoption in the JavaScript ecosystem.
gulp-delete-file
Advanced tools
Initially, install gulp-delete-file
as a development dependency:
npm install --save gulp-delete-file
Then, create task using gulp-delete-file
, which might look similar as below:
'use strict';
var gulp = require('gulp'),
deletefile = require('gulp-delete-file');
gulp.task('deletefile', function () {
var regexp = /\w*(\-\w{8}\.js){1}$|\w*(\-\w{8}\.css){1}$/;
gulp.src(['./build/public/train/**/*.js',
'./build/public/train/**/*.css',
'./build/public/train/**/*.scss',
'./build/public/train/**/*.less'
]).pipe(deletefile({
reg: regexp,
deleteMatch: false
}))
});
Finally, fire gulp task:
gulp deletefile
reg
οΌis a RegExp Object
deleteMatch
:if the value is 'true',then the command will delete all the files which match the reg-rule. if it is 'false',then delete all the files which doesn't match the reg-rule.
βββ _common
β βββ bridge
β βββ hybrid
β βββ icons
β βββ msg-f90a9a3d.js
β βββ msg.js
β βββ train-487d2c1f.css
β βββ train-count-ad175de1.js
β βββ train-count.js
β βββ train.css
β βββ train.scss
β βββ utils-e3a5c9fc.js
β βββ utils.js
β βββ vendors
βββ _common
β βββ bridge
β βββ hybrid
β βββ icons
β βββ msg-f90a9a3d.js
β βββ train-487d2c1f.css
β βββ train-count-ad175de1.js
β βββ utils-e3a5c9fc.js
β βββ vendors
FAQs
gulp plugin to delete matched file based on RegExp Obj
We found that gulp-delete-file 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
vlt's new "reproduce" tool verifies npm packages against their source code, outperforming traditional provenance adoption in the JavaScript ecosystem.
Research
Security News
Socket researchers uncovered a malicious PyPI package exploiting Deezerβs API to enable coordinated music piracy through API abuse and C2 server control.
Research
The Socket Research Team discovered a malicious npm package, '@ton-wallet/create', stealing cryptocurrency wallet keys from developers and users in the TON ecosystem.