Skip to content

Gulp/vinyl-fs plugin, filter files that have been modified since given Date or Number.

License

Notifications You must be signed in to change notification settings

tunnckoCore/vinyl-filter-since

Repository files navigation

Gulp/vinyl-fs plugin, filter files that have been modified since given Date or Number.

code climate standard code style travis build status coverage status dependency status

Install

npm i vinyl-filter-since --save
npm test

Usage

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
  }))

Related

  • benz: Compose your control flow with absolute elegance. Support async/await, callbacks, thunks, generators, promises, observables, child… more
  • generate: Project generator, for node.js.
  • glob-fs: file globbing for node.js. speedy and powerful alternative to node-glob.
  • is-match: Create a matching function from a glob pattern, regex, string, array or function.
  • micromatch: Glob matching for javascript/node.js. A drop-in replacement and faster alternative to minimatch and multimatch. Just… more
  • snapdragon: snapdragon is an extremely pluggable, powerful and easy-to-use parser-renderer factory.
  • vinyl: A virtual file format
  • vinyl-fs: Vinyl adapter for the file system

Contributing

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.

tunnckocore.tk keybase tunnckocore tunnckoCore npm tunnckoCore twitter tunnckoCore github