depper
v0.0.0
Published
simple dep analysis with backtrack.js
Downloads
3
Readme
depper
Depper is a simple dependency resolver. It encodes dependency sets as a boolean expression which is then solved by backtrack.js.
Example
var Depper = require('./depper');
var set = new Depper();
// Register some packages
set.pkg("foo", "1.3", "1.2", "1.1");
set.pkg("bar", "1.3", "1.2", "1.1");
set.pkg("baz", "1.3", "1.2", "1.1");
// Register some dependencies
set.dep("[email protected]", "[email protected]");
set.dep("[email protected]", "[email protected]");
set.dep("[email protected]", "[email protected]");
// Solve the set
var results = set.solve();
// => [ '[email protected]', '[email protected]', '[email protected]' ]
License
MIT.