gulp-touch-custom
Change file access and modification times of files in gulp streams
Install
Install with npm
npm install --save-dev gulp-touch-custom
Usage
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
.
Example (simple touch to current timestamp)
var gulp = ;var touch = ; gulp;
Example (touch by reference)
var gulp = ;var through = ;var touch = ;var Vinyl = ; { return through;} gulp;