
Security Fundamentals
Turtles, Clams, and Cyber Threat Actors: Shell Usage
The Socket Threat Research Team uncovers how threat actors weaponize shell techniques across npm, PyPI, and Go ecosystems to maintain persistence and exfiltrate data.
gulp-set-timestamp
Advanced tools
Sets accessed and modified timestamps in files after the file is written to its destination.
This is inspired by Bernd Matzner's gulp-touch-cmd but allows for passing in the date to be set. If you only need to update the timestamp to the current date/time, you may just want to use gulp-touch-cmd instead or pass in a new date (see examples).
npm i gulp-set-timestamp
or npm i --save-dev gulp-set-timestamp
for a dev dependency.
If dates are not passed, the current date/time will be used for both last accessed and last modified time. This is essentially the functionality that a touch provides.
let gulp = require('gulp'),
setTimeStamp = require('gulp-set-timestamp');
gulp.task('default', () => {
gulp.src('./src/**/*')
.pipe(gulp.dest('./dest'))
.pipe(setTimeStamp());
});
Sets a date for both last accessed and last modified.
let gulp = require('gulp'),
setTimeStamp = require('gulp-set-timestamp');
gulp.task('default', () => {
gulp.src('./src/**/*')
.pipe(gulp.dest('./dest'))
.pipe(setTimeStamp(new Date('2018-07-31T00:00:00'), new Date('2018-01-01T00:00:00')));
});
I followed the gulp guidelines to create this plugin "the gulp way". If something is amiss, please open an issue, and I'll be happy to follow up.
Tests still need to be added.
FAQs
Sets accessed and modified timestamps in files
The npm package gulp-set-timestamp receives a total of 0 weekly downloads. As such, gulp-set-timestamp popularity was classified as not popular.
We found that gulp-set-timestamp 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 Fundamentals
The Socket Threat Research Team uncovers how threat actors weaponize shell techniques across npm, PyPI, and Go ecosystems to maintain persistence and exfiltrate data.
Security News
At VulnCon 2025, NIST scrapped its NVD consortium plans, admitted it can't keep up with CVEs, and outlined automation efforts amid a mounting backlog.
Product
We redesigned our GitHub PR comments to deliver clear, actionable security insights without adding noise to your workflow.