# Install directory-tree with npm

Convert a directory tree to a JS object. Version 3.6.0 via npm; verified 2026-01-24.

## Install

```sh
sudo av install npm:directory-tree
```

Additional install commands:

### Portable and language managers

- npm (100%):

```sh
npm install -g directory-tree
```

  Evidence: local npm package metadata

## Package facts

- **Package key:** npm:directory-tree
- **Package manager:** npm
- **Package manager page:** <https://www.npmjs.com/package/directory-tree>
- **Version:** 3.6.0
- **Source summary:** Convert a directory tree to a JS object.
- **Homepage:** <https://github.com/mihneadb/node-directory-tree>
- **Repository:** <https://github.com/mihneadb/node-directory-tree>
- **Upstream docs:** <https://github.com/mihneadb/node-directory-tree>
- **License:** MIT
- **Source archive:** <https://registry.npmjs.org/directory-tree/-/directory-tree-3.6.0.tgz>
- **Issue tracker:** <https://github.com/mihneadb/node-directory-tree/issues>
- **Published:** 2026-01-24T11:41:22.569Z
- **Last updated:** 2026-01-24T11:41:22.569Z
- **Generated:** 2026-08-04T22:13:35+00:00

## Executables

- directory-tree (cli)
- directory-tree (alias)

## Dependencies

- command-line-args
- command-line-usage

## Build dependencies

- @types/node
- chai
- mocha
- typescript

## Install behavior

- Post-install hook: not defined
- Bottle: not available

## Freshness

- Page generated: 2026-08-04
- Package-manager version: 3.6.0
- Package-manager updated: 2026-01-24
- Local data: ok
- Upstream repository: https://github.com/mihneadb/node-directory-tree
- notice: The package-manager record has not changed recently.
- info: No cached GitHub release or tag data was available.

## Security Notes

No matching local secret-handling manifest was found for directory-tree. Package metadata is still published here so future coverage has a stable package URL.


## Source Database Details

- **Source Database:** npm registry
- **Dist Tags:** Latest: 3.6.0
- **Version Count:** 37
- **Maintainers:** mihneadb
- **Author:** Mihnea Dobrescu-Balaur
- **Publisher:** mihneadb
- **Engines:** Node: >=10.0
- **Integrity:** sha512-rTMWs+zxr0QEbzQKRfwV6SeEy+zIHFkorskI4bhG2o7ayr82c+FC7yWg3yLpurgp6Hs2NGy1NWrKIaDodr2r8A==
- **Shasum:** f8530bff482c8c420e01874aea3bb95744f5a5e4
- **Unpacked Size:** 28,979
- **File Count:** 0
- **Created At:** 2014-03-11T13:20:45.651Z
- **Latest Published At:** 2026-01-24T11:41:22.569Z
- **Modified At:** 2026-01-24T11:41:22.698Z


## Related links

- [Terminal utility packages](https://pkg.so/terminal-utilities/) - Matched curated package taxonomy and local package facts.
- [concat-cli](https://pkg.so/npm/concat-cli/) - Local package facts share a topical domain. Shared terms: cli, files, filesystem, line, system.
- [copy-files-from-to](https://pkg.so/npm/copy-files-from-to/) - Local package facts share a topical domain. Shared terms: cli, directory, files, filesystem, system.
- [cpx](https://pkg.so/npm/cpx/) - Local package facts share a topical domain. Shared terms: cli, directory, files, filesystem, system.

## Sources

- pkg.so package database
- package-page enrichment
- package version freshness
- pkgdb category and tag curation
- package relationship graph
- cross-ecosystem install command graph
