dr

dependency-resolver

Dependency Resolver class

Showing:

Popularity

Downloads/wk

161

GitHub Stars

4

Maintenance

Last Commit

7yrs ago

Contributors

0

Package

Dependencies

0

License

ISC

Type Definitions

Tree-Shakeable

No?

Categories

Readme

DependencyResolver

Example usage

var DependencyResolver = require('dependency-resolver'); //if in node env

var resolver = new DependencyResolver(); //or new grom.DependencyResolver(); when in browser env
resolver.add('a');
resolver.add('b');
resolver.add('c');
resolver.add('d');

resolver.setDependency('d', 'c');
resolver.setDependency('c', 'b');
resolver.setDependency('c', 'a');
resolver.setDependency('b', 'a');

resolver.resolve('d'); //=> ['a', 'b', 'c', 'd'];
resolver.sort(); // => ['a', 'b', 'c', 'd'];

resolver.resolve(serviceName:string):string[]

Resolves dependencies of serviceName.

resolver.sort():string[]

Returns all services in the right order.

License - ISC

ISC is even simpler MIT like license

Rate & Review

Great Documentation0
Easy to Use0
Performant0
Highly Customizable0
Bleeding Edge0
Responsive Maintainers0
Poor Documentation0
Hard to Use0
Slow0
Buggy0
Abandoned0
Unwelcoming Community0
100
No reviews found
Be the first to rate

Alternatives

No alternatives found

Tutorials

No tutorials found
Add a tutorial