Figure out if a file is behind its dependencies a la make
Does mtime checking of a dependent file vs a bunch of dependencies. Basically the same thing a make task does before running.
var behind = require'behind';behind'./dependent.out' './dependency.in'if err throw err;//// If there are no deps, `deps` is null.// I'm open to changing this API.//if depsconsole.log'stale dependencies:' deps;;
var behind = require'behind'sync;var deps = behind'./dependent.out' './dependency.in' ;if depsconsole.log'stale dependencies:' deps;
That's pretty much it.