node-dependency-tree
Library that resolves the full dependency tree of a Node module, listing every source and package dependency a file imports recursively, used as a building block for graphing and bundling analysis tools.
node-dependency-tree at github.com/dependents/node-dependency-tree is a free MIT Node dependency tree resolver library, npm 12.0.1 Node 20.19+ or 22.12+, given an entry file parses require and import statements, resolves modules to files on disk, recurses into module dependencies for a nested source and package tree, handles JS and TypeScript via loaders, exposes structured data for graphs audits or bundle analysis, programmatic library not a standalone dashboard, no sold commercial tier (data as of Nov 22, 2026).
*This is an affiliate link, we may earn a commission at no extra cost to you.
Is node-dependency-tree free?
node-dependency-tree: node-dependency-tree is free open-source software released under the MIT License; the dependency-tree package latest 12.0.1 on npm requires Node 20.19.0 or above, or Node 22.12.0 or above. Given an entry file, it parses require and import statements, resolves each module to its file on disk, and recurses into that module's own dependencies to produce a nested tree of source files and packages. It handles JavaScript and TypeScript resolution through configured loaders and exposes the tree as structured data rather than a rendered report, so other tools can consume it for graphs, audits or bundle analysis. It is a programmatic library rather than a standalone dashboard. No paid commercial edition or per-seat license is sold by the project (data as of Nov 22, 2026). Check the official page for current status before relying on it.
Frequently Asked Questions
Is node-dependency-tree free?
The code is free to self-host, but a hosted plan from the vendor may not be. node-dependency-tree publishes its source, so cost depends on where you run it.
How much does node-dependency-tree cost?
node-dependency-tree is free open-source software released under the MIT License; the dependency-tree package latest 12.0.1 on npm requires Node 20.19.0 or above, or Node 22.12.0 or above. Given an entry file, it parses require and import statements, resolves each module to its file on disk, and recurses into that module's own dependencies to produce a nested tree of source files and packages. It handles JavaScript and TypeScript resolution through configured loaders and exposes the tree as structured data rather than a rendered report, so other tools can consume it for graphs, audits or bundle analysis. It is a programmatic library rather than a standalone dashboard. No paid commercial edition or per-seat license is sold by the project (data as of Nov 22, 2026). Usage volume, plan limits and add-ons can push the bill above the figures shown, so confirm the current numbers on the vendor page before committing.
Where can I check node-dependency-tree's current pricing?
On node-dependency-tree's official site, linked from this page. We only publish a price after reading the vendor's own pricing page, so if this page shows no number, it means no traceable public price is on file — not that the tool is free.
What is node-dependency-tree?
The entry file seeds resolution, require and import statements are parsed, each module resolves to a disk path, recursion collects transitive dependencies, and the nested tree is returned as data for downstream tools.
How does pricing work?
The library installs free under MIT with no seat license; loaders and resolvers follow their own terms, and any commercial support would be outside the open-source project.
How does node-dependency-tree compare with other tools in Dev Workflow & Productivity?
node-dependency-tree is listed in the Dev Workflow & Productivity category, alongside 2 other tools we track here. 2 of those 2 peers have a dated price we read from the vendor's own pricing page, and the table below shows each tool's pricing model next to the exact rate on file — so the comparison is between published numbers, not between marketing pages.
| Tool | Pricing model | Key pricing on file | Price checked |
|---|---|---|---|
| node-dependency-tree | Open source | node-dependency-tree is free open-source software released under the MIT License; the dependency-tree package latest 12.0.1 on npm requires Node 20.19.0 or above, or Node 22.12.0 or above. Given an entry file, it parses require and import statements, resolves each module to its file on disk, and recurses into that module's own dependencies to produce a nested tree of source files and packages. It handles JavaScript and TypeScript resolution through configured loaders and exposes the tree as structured data rather than a rendered report, so other tools can consume it for graphs, audits or bundle analysis. It is a programmatic library rather than a standalone dashboard. No paid commercial edition or per-seat license is sold by the project (data as of Nov 22, 2026). | Nov 22, 2026 |
| Dependency Cruiser | Open source | Dependency Cruiser is free open-source software released under the MIT License; the dependency-cruiser package latest 18.8.0 on npm supports Node 22, 24 or 26 and above. It parses imports and require calls across JavaScript, TypeScript and CoffeeScript modules, builds a dependency graph, and checks that graph against declarative rules that allow or forbid certain relationships, such as circular dependencies, layered architecture violations or imports from disallowed folders. Outputs include text, HTML and SVG reports, JSON for CI integration, and metrics on the number of dependencies and cycles. The tool runs locally in a project or in CI to keep module boundaries consistent over time. No paid commercial edition or per-seat license is sold by the core project (data as of Nov 22, 2026). | Nov 22, 2026 |
| Madge | Open source | Madge is free open-source software released under the MIT License; the madge package latest 8.0.0 on npm requires Node 18 or above. It scans source files, follows ES module and CommonJS imports, and builds a tree of how modules depend on one another. It reports circular dependencies, lists modules that are never imported, and can render the graph as an SVG or image, a JSON structure, or an interactive web page for exploration. The CLI integrates into CI to fail a build when new cycles appear, and the visual output helps teams understand module coupling before refactoring. No paid commercial edition or per-seat license is sold by the project (data as of Nov 22, 2026). | Nov 22, 2026 |
3 of these 3 entries carry a specific price we read from the vendor's site. Where the column says there is no dated price on file, we have not verified a rate — treat that as unknown rather than free, and check the vendor's page before you budget for it.
Full pricing breakdown
node-dependency-tree's source code is publicly available, so you can run or build it yourself. The project may also sell a paid hosted or cloud plan — check the official site for current pricing.
Open source does not always mean every hosted version is free.
Key pricing: node-dependency-tree is free open-source software released under the MIT License; the dependency-tree package latest 12.0.1 on npm requires Node 20.19.0 or above, or Node 22.12.0 or above. Given an entry file, it parses require and import statements, resolves each module to its file on disk, and recurses into that module's own dependencies to produce a nested tree of source files and packages. It handles JavaScript and TypeScript resolution through configured loaders and exposes the tree as structured data rather than a rendered report, so other tools can consume it for graphs, audits or bundle analysis. It is a programmatic library rather than a standalone dashboard. No paid commercial edition or per-seat license is sold by the project (data as of Nov 22, 2026).
Estimate your monthly bill with our calculator →Or build a full stack around your budget →Pricing Guides & Comparisons
Plan prices in these guides are read from each vendor's own pricing page, with the date we checked them.
⭐ Rate this tool
How would you rate this tool?
🚀 Never Miss a New AI Coding Tool
Join 1,000+ developers getting our weekly roundup: new AI tools, student free tiers, exclusive discounts, and side project deals. No spam, unsubscribe anytime.
Current Alternatives
Dependency Cruiser
Rule-driven dependency analysis for JavaScript, TypeScript and CoffeeScript that maps module imports, validates them against project rules, flags circular or forbidden dependencies and outputs graphs, reports and summary metrics.
Madge
Module dependency graph tool that traces imports in JavaScript and TypeScript projects, generates circular dependency lists and visualizes the module tree as an image, JSON or interactive web view to spot tangled or orphaned modules.
Tool Information
- Official Websitegithub.com
- CategoryDev Workflow & Productivity
- PricingOpen Source
- Price checkedNov 22, 2026
