
Security News
The Next Open Source Security Race: Triage at Machine Speed
Claude Opus 4.6 has uncovered more than 500 open source vulnerabilities, raising new considerations for disclosure, triage, and patching at scale.
gulp-touch-custom
Advanced tools
Change file access and modification times of files in gulp streams
Install with npm
npm install --save-dev gulp-touch-custom
Pipe into this after piping to a gulp destination (files must have been written to disk) to touch the files.
On each file, set an optional touch member (of type Date or fs.Stats) to set the access and modification times to a certain value, similar to the command line touch -t and touch -r.
var gulp = require('gulp');
var touch = require('gulp-touch-custom');
gulp.task('default', function() {
return gulp.src('./src/**/*')
.pipe(gulp.dest('./dest'))
.pipe(touch());
});
var gulp = require('gulp');
var through = require('through2');
var touch = require('gulp-touch-custom');
var Vinyl = require('vinyl');
function exampleproc() {
return through.obj(function (file, encoding, cb) {
// This gulp step outputs multiple files
this.push(new Vinyl({
path: file.relative + '.stamp',
contents: Buffer.from('Hello, World.'),
touch: file.stat.mtime, // Use timestamp of the source file by reference
}));
this.push(file); // With file.touch undefined, will be use the current time
cb();
});
}
gulp.task('default', function (next) {
return gulp.src('./src/**/*.foo')
.pipe(exampleproc())
.pipe(gulp.dest('./dest'))
.pipe(touch());
});
FAQs
Change file access and modification times
The npm package gulp-touch-custom receives a total of 109 weekly downloads. As such, gulp-touch-custom popularity was classified as not popular.
We found that gulp-touch-custom 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
Claude Opus 4.6 has uncovered more than 500 open source vulnerabilities, raising new considerations for disclosure, triage, and patching at scale.

Research
/Security News
Malicious dYdX client packages were published to npm and PyPI after a maintainer compromise, enabling wallet credential theft and remote code execution.

Security News
gem.coop is testing registry-level dependency cooldowns to limit exposure during the brief window when malicious gems are most likely to spread.