This package has been deprecated

Author message:

I wrote this module a very long time ago; you should use something else.

behind

0.1.0 • Public • Published

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

Readme

Keywords

Package Sidebar

Install

npm i behind

Weekly Downloads

1

Version

0.1.0

License

MIT

Last publish

Collaborators

  • jesusabdullah