Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/ljharb/get-dep-tree
Use npm's Arborist to get a dependency tree for a package.
https://github.com/ljharb/get-dep-tree
actual arborist dependency ideal lockfile npm tree virtual
Last synced: 6 days ago
JSON representation
Use npm's Arborist to get a dependency tree for a package.
- Host: GitHub
- URL: https://github.com/ljharb/get-dep-tree
- Owner: ljharb
- License: mit
- Created: 2022-01-07T08:11:29.000Z (almost 3 years ago)
- Default Branch: main
- Last Pushed: 2024-07-31T05:52:19.000Z (3 months ago)
- Last Synced: 2024-10-17T02:18:45.679Z (21 days ago)
- Topics: actual, arborist, dependency, ideal, lockfile, npm, tree, virtual
- Language: JavaScript
- Homepage:
- Size: 83 KB
- Stars: 14
- Watchers: 2
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- Funding: .github/FUNDING.yml
- License: LICENSE
Awesome Lists containing this project
README
# get-dep-tree [![Version Badge][npm-version-svg]][package-url]
[![github actions][actions-image]][actions-url]
[![coverage][codecov-image]][codecov-url]
[![dependency status][deps-svg]][deps-url]
[![dev dependency status][dev-deps-svg]][dev-deps-url]
[![License][license-image]][license-url]
[![Downloads][downloads-image]][downloads-url][![npm badge][npm-badge-png]][package-url]
Use npm's Arborist to get a dependency tree for a package.
## Example
```js
const getDepTree = require('get-dep-tree');
const { Node } = require('@npmcli/arborist');
const assert = require('assert');getDepTree().then((tree) => {
assert.ok(tree instanceof Node);
});
```[package-url]: https://npmjs.org/package/get-dep-tree
[npm-version-svg]: https://versionbadg.es/ljharb/get-dep-tree.svg
[deps-svg]: https://david-dm.org/ljharb/get-dep-tree.svg
[deps-url]: https://david-dm.org/ljharb/get-dep-tree
[dev-deps-svg]: https://david-dm.org/ljharb/get-dep-tree/dev-status.svg
[dev-deps-url]: https://david-dm.org/ljharb/get-dep-tree#info=devDependencies
[npm-badge-png]: https://nodei.co/npm/get-dep-tree.png?downloads=true&stars=true
[license-image]: https://img.shields.io/npm/l/get-dep-tree.svg
[license-url]: LICENSE
[downloads-image]: https://img.shields.io/npm/dm/get-dep-tree.svg
[downloads-url]: https://npm-stat.com/charts.html?package=get-dep-tree
[codecov-image]: https://codecov.io/gh/ljharb/get-dep-tree/branch/main/graphs/badge.svg
[codecov-url]: https://app.codecov.io/gh/ljharb/get-dep-tree/
[actions-image]: https://img.shields.io/endpoint?url=https://github-actions-badge-u3jn4tfpocch.runkit.sh/ljharb/get-dep-tree
[actions-url]: https://github.com/ljharb/get-dep-tree/actions