https://github.com/firstandthird/deptree
A javascript/node.js library to resolve dependency trees
https://github.com/firstandthird/deptree
Last synced: 3 months 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 (almost 13 years ago)
- Default Branch: master
- Last Pushed: 2021-02-19T01:48:35.000Z (over 4 years ago)
- Last Synced: 2025-04-11T01:12:15.908Z (3 months ago)
- Language: JavaScript
- Size: 13.7 KB
- Stars: 7
- Watchers: 11
- 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' ]
```