Package
directory-tree
Convert a directory tree to a JS object.
Key numbers
As of 25 Sept 2026
- Weekly downloads
- 414.9k
- +254% over 12 months
- Gzip bundle size
- -
- No Bundlephobia data
- Dependencies
- 2
- Direct, from package.json
- Last release
- 7 months ago
- v3.6.0
- GitHub stars
- 540
- 105 forks
- Open issues / PRs
- 21 / 1
- Contributors
- -
- Commits, last 52 weeks
- 10
Downloads
Last week 2026-09-15 to 2026-09-21
414,852 downloads last week, 2,026,646 in the last month. The 12-month change of +254% compares the average of the last 4 weeks with the first 4 weeks of the series.
- Releases, last 12 months
- 137 in total
- Latest version
- 3.6.0, 24 Jan 20267 months ago
- First published
- 11 Mar 2014
- Last push to GitHub
- 27 Mar 2026181 days before the snapshot
- Repository archived
- No
- Open issues
- 21
- Open pull requests
- 1
- Commits, last 52 weeks
- 10
- Dependents on npm
- -
Major versions
- v3 first release 3.0.0, 22 Sept 2021
- v2 first release 2.0.0, 17 May 2017
- v1 first release 1.0.0, 17 Apr 2016
- v0 first release 0.1.0, 11 Mar 2014
Recent releases
| Version | Published |
|---|---|
| 3.6.0 | 24 Jan 2026 |
| 3.5.2 | 15 Jul 2024 |
| 3.5.1 | 21 Dec 2022 |
| 3.5.0 | 20 Dec 2022 |
| 3.4.0 | 18 Nov 2022 |
| 3.3.2 | 7 Nov 2022 |
| 3.3.1 | 1 Sept 2022 |
| 3.3.0 | 21 May 2022 |
| 3.2.2 | 21 Feb 2022 |
| 3.2.1 | 11 Feb 2022 |
| 3.2.0 | 8 Feb 2022 |
| 3.1.0 | 1 Feb 2022 |
| 3.0.1 | 17 Nov 2021 |
| 3.0.0 | 22 Sept 2021 |
- Module format
- CommonJSFrom package.json type, main and exports fields
- TypeScript types
- None
- Node.js engine range
- >=10.0
- Runtimes
- -
- Unpacked size (npm)
- 28 kB
- Dependencies (2)
command-line-argscommand-line-usage
npm install directory-tree- jsDelivr
https://cdn.jsdelivr.net/npm/directory-tree@3.6.0/ - unpkg
https://unpkg.com/directory-tree@3.6.0/ - esm.sh
https://esm.sh/directory-tree@3.6.0
Indexability: Indexed.