Skip to content

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

License

Notifications You must be signed in to change notification settings

ljharb/get-dep-tree

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

40 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

get-dep-tree Version Badge

github actions coverage dependency status dev dependency status License Downloads

npm 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);
});