Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/wankdanker/node-depresol
An asynchronous dependency resolver for node
https://github.com/wankdanker/node-depresol
Last synced: 14 days ago
JSON representation
An asynchronous dependency resolver for node
- Host: GitHub
- URL: https://github.com/wankdanker/node-depresol
- Owner: wankdanker
- Created: 2015-12-31T15:36:38.000Z (about 9 years ago)
- Default Branch: master
- Last Pushed: 2016-02-05T20:41:47.000Z (almost 9 years ago)
- Last Synced: 2024-12-06T09:16:01.453Z (about 1 month ago)
- Language: JavaScript
- Size: 1.95 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
depresol
--------An asynchronous dependency resolver.
This is probably not the most robust or correct dependency resolver, but it suits my use-case.
example
-------```js
var depresol = require('depresol');var d = depresol(function (lookup, cb) {
/* do stuff to find an object based on `lookup` and get its list of dependencies */redis.get(lookup, function (err, data) {
data = JSON.parse(data);//here `data` is an imaginary object which contains
//a `deps` property that is an array of dependency lookup keys
return cb(err, data, data.deps);
});
});d('a', function (err, result) {
//result contains an array of all the dependencies
});
```license
-------MIT