DependencyResolver class for resolving dependency tree
var DependencyResolver = require'dependency-resolver'; //if in node envvar resolver = ; //or new grom.DependencyResolver(); when in browser envresolveradd'a';resolveradd'b';resolveradd'c';resolveradd'd';resolversetDependency'd' 'c';resolversetDependency'c' 'b';resolversetDependency'c' 'a';resolversetDependency'b' 'a';resolverresolve'd'; //=> ['a', 'b', 'c', 'd'];resolversort; // => ['a', 'b', 'c', 'd'];
Resolves dependencies of
Returns all services in the right order.
ISC is even simpler MIT like license