Gulp/vinyl-fs plugin, filter files that have been modified since given Date or Number.
MIT License
Gulp/vinyl-fs plugin, filter files that have been modified since given Date or Number.
npm i vinyl-filter-since --save
npm test
For more use-cases see the tests
var vinylFilterSince = require('vinyl-filter-since');
var gulp = require('gulp');
var through2 = require('through2');
gulp.src('some/file/path/*.js')
.pipe(vinylFilterSince(new Date('2015-03-16 13:27:54')))
.pipe(through2.obj(function(file, enc, next) {
// will not come here if file is older than given date
}))
Pull requests and stars are always welcome. For bugs and feature requests, please create an issue. But before doing anything, please read the CONTRIBUTING.md guidelines.