# gulp-if-any-newer

> Pass through all source files if any source file is newer than any dest file.

Latest version **2.0.0** (published 2020-09-03) · MIT license · 0 weekly downloads

## Install

```sh
npm install gulp-if-any-newer
pnpm add gulp-if-any-newer
yarn add gulp-if-any-newer
bun add gulp-if-any-newer
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 2.0.0 |
| Published | 2020-09-03 |
| First published | 2017-09-01 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Node | >=4 |
| Dependencies | 4 |
| Unpacked size | 5 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 2 |
| Author | Cornelius Buschka |
| Maintainers | cbuschka |
| Keywords | gulpplugin, file, files, changed, newer, modified, modification, updated, time, mtime, stat, cache, cached, passthrough |

## Links

- npm: https://www.npmjs.com/package/gulp-if-any-newer
- Repository: github.com/cbuschka/gulp-if-any-newer
- npm.io page: https://npm.io/package/gulp-if-any-newer

## Dependencies (4)

- [glob](https://npm.io/package/glob.md) ^7.1.2
- [through2](https://npm.io/package/through2.md) ^2.0.0
- [fancy-log](https://npm.io/package/fancy-log.md) ^1.3.3
- [plugin-error](https://npm.io/package/plugin-error.md) ^1.0.1

## Alternatives

- [@js-joda/timezone](https://npm.io/package/@js-joda/timezone.md) — 383.4K weekly downloads
- [chartjs-adapter-moment](https://npm.io/package/chartjs-adapter-moment.md) — 210.8K weekly downloads
- [strftime](https://npm.io/package/strftime.md) — 171.2K weekly downloads
- [vue-flatpickr-component](https://npm.io/package/vue-flatpickr-component.md) — 115.8K weekly downloads
- [timepicker](https://npm.io/package/timepicker.md) — 51.0K weekly downloads

## Recent versions

- 2.0.0 (latest) — 2020-09-03
- 1.0.2 — 2017-09-01
- 1.0.1 — 2017-09-01
- 1.0.0 — 2017-09-01

## README

# gulp-if-any-newer

#### Pass through all source files if any source file is newer than any dest file.

## Usage

```js
const gulp = require('gulp');
const ifAnyNewer = require('gulp-if-any-newer');
const anyConsumer = require('gulp-any-consumer');

const SRC = 'src/*.js';
const DEST = 'dist';

gulp.task('default', () =>
  gulp.src(SRC)
    .pipe(ifAnyNewer(DEST, { filter: '**/*', debug: true }))
    // anyConsumer will only get the files feeded in
    // if any source file is newer than any file in dest
    .pipe(anyConsumer())
    .pipe(gulp.dest(DEST));
);
```

## Related Gulp Plugins
* [gulp-newer](https://github.com/tschaub/gulp-newer)
* [gulp-changed](https://github.com/sindresorhus/gulp-changed)
* [gulp-changed-in-place](https://github.com/alexgorbatchev/gulp-changed-in-place)

## Contributing
Thanks to all contributors! This is open source, Pull Requests are welcome!

## License

Copyright (c) 2017-2020 by [Cornelius Buschka](https://github.com/cbuschka)

[MIT License](license)

---
_Source: https://npm.io/package/gulp-if-any-newer · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
