Check if the mtime on a list of files has changed
CoffeeScript
Switch branches/tags
Nothing to show
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
lib
src
.gitignore
.travis.yml
LICENSE
Makefile
README.md
package.json

README.md

build status have-files-changed

This module will check if the mtime on a list of files and, when called, a yes callback if the files have changed since they were last checked, or a no callback if they are the same. The list of files is specified as a glob pattern (see https://github.com/isaacs/node-glob).

To get going, install with NPM:

npm install have-files-changed

For example

    haveFilesChanged 'sass/*.sass',
      yes: filesHaveChangedCallback
      no: filesHaveNotChangedCallback
      error: (err) -> throw err

The first time you call haveFilesChanged, the yes callback will be fired.