0.1.0 • Published 11 years ago

behind v0.1.0

Weekly downloads
3
License
MIT
Repository
github
Last release
11 years ago

Behind

Does mtime checking of a dependent file vs a bunch of dependencies. Basically the same thing a make task does before running.

Example

var behind = require('behind');

behind('./dependent.out', [ './dependency.in' ], function (err, deps) {
  if (err) throw err;

  //
  // If there are no deps, `deps` is null.
  // I'm open to changing this API.
  //
  if (deps) {
    console.log('stale dependencies:', deps);
  }
});

Alternately:

var behind = require('behind').sync;

var deps = behind('./dependent.out', [ './dependency.in' ]);

if (deps) {
  console.log('stale dependencies:', deps);
}

That's pretty much it.

License

MIT

0.1.0

11 years ago

0.0.0

11 years ago