directory-tree
Convert a directory tree to a JS object.
directory-tree@3.6.0 was published on 2026-01-24. Its manifest declares 2 runtime dependencies and 0 peer requirements. Bundled type declarations are not declared in the inspected metadata. The declared Node.js requirement is >=10.0.
All directory-tree versions · Permanent reference to 3.6.0
Package specifications
| Version | 3.6.0 |
|---|---|
| License declaration | MIT |
| Published | 2026-01-24T11:41:22.569Z |
| Node.js requirement | >=10.0 |
| Type declarations | Not declared |
| Runtime dependency count | 2 |
| Peer requirement count | 0 |
| Optional dependency count | 0 |
| Minified size | Measurement not available yet |
| Minified + gzip | Measurement not available yet |
| Unpacked distribution size | 28.30 KiB |
| Published file count | 8 |
| Package type | Not declared |
| ES module entry | Not declared |
| Default entry | lib/directory-tree.js |
| Side effects declaration | Not declared |
| Direct advisories | 0 |
| Resolved graph dependencies | 22 |
| Repository stars | 540 |
| Repository forks | 104 |
Install directory-tree 3.6.0
npm install directory-tree@3.6.0 pnpm add directory-tree@3.6.0 yarn add directory-tree@3.6.0
Runtime dependencies
- command-line-args ^5.2.0
- command-line-usage ^6.1.1
Peer requirements
- None declared
Optional dependencies
- None declared
Resolved dependency graph
This deps.dev graph describes a generic 64-bit Linux environment, not your application lockfile.
- command-line-args@5.2.1 — direct
- command-line-usage@6.1.3 — direct
- array-back@3.1.0 — indirect
- find-replace@3.0.0 — indirect
- lodash.camelcase@4.3.0 — indirect
- typical@4.0.0 — indirect
- array-back@4.0.2 — indirect
- chalk@2.4.2 — indirect
- table-layout@1.0.2 — indirect
- typical@5.2.0 — indirect
- ansi-styles@3.2.1 — indirect
- escape-string-regexp@1.0.5 — indirect
- supports-color@5.5.0 — indirect
- array-back@4.0.2 — indirect
- deep-extend@0.6.0 — indirect
- typical@5.2.0 — indirect
- wordwrapjs@4.0.1 — indirect
- color-convert@1.9.3 — indirect
- has-flag@3.0.0 — indirect
- reduce-flatten@2.0.0 — indirect
- typical@5.2.0 — indirect
- color-name@1.1.3 — indirect
How to interpret the specifications
Bundlephobia measurements use its standard package build and may exclude peer dependencies. Unpacked npm distribution size includes shipped files and is a different measurement. Module declarations do not prove tree-shaking or runtime compatibility.
Advisories apply to this package version directly; transitive dependencies need separate inspection. Repository signals describe the whole repository and are current observations, including on historical-version pages.
OpenSSF repository checks
Provider assessment: 2026-08-24T00:00:00Z. These are repository checks, not a jsL maintenance score.
| Dangerous-Workflow | 10/10 — no dangerous workflow patterns detected |
|---|---|
| Code-Review | 0/10 — Found 1/12 approved changesets -- score normalized to 0 |
| Maintained | 0/10 — 0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0 |
| Pinned-Dependencies | 10/10 — all dependencies are pinned |
| Binary-Artifacts | 10/10 — no binaries found in the repo |
| Token-Permissions | 0/10 — detected GitHub workflow tokens with excessive permissions |
| CII-Best-Practices | 0/10 — no effort to earn an OpenSSF best practices badge detected |
| Security-Policy | 0/10 — security policy file not detected |
| Fuzzing | 0/10 — project is not fuzzed |
| License | 10/10 — license file detected |
| Branch-Protection | 0/10 — branch protection not enabled on development/release branches |
| SAST | 0/10 — SAST tool is not run on all commits -- score normalized to 0 |
Evidence and freshness
- https://registry.npmjs.org/directory-tree/3.6.0 — retrieved 2026-10-29T12:45:59.435Z
- https://api.deps.dev/v3/projects/github.com%2Fmihneadb%2Fnode-directory-tree — retrieved 2026-10-29T10:59:15.968Z
- https://api.deps.dev/v3/systems/npm/packages/directory-tree/versions/3.6.0 — retrieved 2026-10-29T13:01:52.155Z
- https://api.deps.dev/v3/systems/npm/packages/directory-tree/versions/3.6.0:dependencies — retrieved 2026-10-29T13:01:52.160Z