Share your code. npm Orgs help your team discover, share, and reuse code. Create a free org »

depper

0.0.0 • Public • Published

depper

build status

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("foo@1.3", "bar@1.2");
set.dep("baz@1.3", "bar@1.3");
set.dep("baz@1.2", "bar@1.2");
 
// Solve the set
var results = set.solve();
// => [ 'foo@1.3', 'bar@1.2', 'baz@1.2' ]
 

License

MIT.

Keywords

none

install

npm i depper

Downloadsweekly downloads

2

version

0.0.0

license

none

last publish

collaborators

  • avatar