any-newer-files

Compares two lists of files and returns true if any of the first list are newer than any in the second list.

Usage no npm install needed!

<script type="module">
  import anyNewerFiles from 'https://cdn.skypack.dev/any-newer-files';
</script>

README

any-newer-files

Compares two lists of files and returns true if any of the first list are newer than any in the second list.

build status

Installation

npm install any-newer-files --save

Usage


if (anyNewer(
  [ './stylus/main.styl', './stylus/gallery.styl', './stylus/user.styl' ]
  , [ './build/css/index.css', './build/css/user.css' ])) {
  recompile()
}


Credits

Paul Serby follow me on twitter @serby

Licence

Licenced under the New BSD License