Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/firstandthird/deptree
A javascript/node.js library to resolve dependency trees
https://github.com/firstandthird/deptree
Last synced: 14 days ago
JSON representation
A javascript/node.js library to resolve dependency trees
- Host: GitHub
- URL: https://github.com/firstandthird/deptree
- Owner: firstandthird
- License: mit
- Created: 2012-07-28T06:16:03.000Z (over 12 years ago)
- Default Branch: master
- Last Pushed: 2021-02-19T01:48:35.000Z (almost 4 years ago)
- Last Synced: 2025-01-12T20:11:40.380Z (20 days ago)
- Language: JavaScript
- Size: 13.7 KB
- Stars: 7
- Watchers: 12
- Forks: 2
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- Changelog: HISTORY.md
- License: LICENSE
Awesome Lists containing this project
README
# DepTree
##Installation
```
npm install deptree
```##Usage
```js
var DepTree = require('deptree');
var depTree = new DepTree();
depTree.add('a');
depTree.add('b', ['c', 'a']);
depTree.add('d', 'b');var resolve = depTree.resolve();
//resolve == [ 'a', 'c', 'b', 'd' ]
```