get-dep-tree

Use npm's Arborist to get a dependency tree for a package.

MIT License

Downloads
91.7K
Stars
14
Committers
1

get-dep-tree Version Badge

Use npm's Arborist to get a dependency tree for a package.

Example

const getDepTree = require('get-dep-tree');
const { Node } = require('@npmcli/arborist');
const assert = require('assert');

getDepTree().then((tree) => {
	assert.ok(tree instanceof Node);
});