
Security News
npm Adopts OIDC for Trusted Publishing in CI/CD Workflows
npm now supports Trusted Publishing with OIDC, enabling secure package publishing directly from CI/CD workflows without relying on long-lived tokens.
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 News
npm now supports Trusted Publishing with OIDC, enabling secure package publishing directly from CI/CD workflows without relying on long-lived tokens.
Research
/Security News
A RubyGems malware campaign used 60 malicious packages posing as automation tools to steal credentials from social media and marketing tool users.
Security News
The CNA Scorecard ranks CVE issuers by data completeness, revealing major gaps in patch info and software identifiers across thousands of vulnerabilities.