Simple, efficient file watching.

Usage no npm install needed!

<script type="module">
  import vigil from '';


vigil Build Status npm version

Simple, fast, efficient file watcher for node.

Example'src/*.coffee', function(filename, stats) {
    exec('coffee -bcm ' + filename)

API, cb)

Executes fn (typically a server), watching modules required into VM for changes and executing cb on change events.


Watches modules required into VM for changes, executing cb on change events

vigil.walk(path, cb)

Walks path, calling cb with (filename, stats) for each file found (optionally matching glob pattern)., cb)

Watches path for changes, calling cb with (filename, stats, isModule) on change.