Skip to content
JS
Package

directory-tree

Convert a directory tree to a JS object.

v3.6.0, 24 Jan 2026MITCommonJSTypes: NoneNode.js utilities
$ npm install directory-tree

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
0200k400k600k800kSept 2025Mar 2026Sept 2026High 604.2k (25 Aug 2026)Low 91.9k (28 Oct 2025)
Weekly npm downloads, one point per week, weeks starting 23 Sept 2025 to 15 Sept 2026. The y axis starts at zero.

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

  1. v3 first release 3.0.0, 22 Sept 2021
  2. v2 first release 2.0.0, 17 May 2017
  3. v1 first release 1.0.0, 17 Apr 2016
  4. v0 first release 0.1.0, 11 Mar 2014

Recent releases

VersionPublished
3.6.024 Jan 2026
3.5.215 Jul 2024
3.5.121 Dec 2022
3.5.020 Dec 2022
3.4.018 Nov 2022
3.3.27 Nov 2022
3.3.11 Sept 2022
3.3.021 May 2022
3.2.221 Feb 2022
3.2.111 Feb 2022
3.2.08 Feb 2022
3.1.01 Feb 2022
3.0.117 Nov 2021
3.0.022 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
  • jsDelivrhttps://cdn.jsdelivr.net/npm/directory-tree@3.6.0/
  • unpkghttps://unpkg.com/directory-tree@3.6.0/
  • esm.shhttps://esm.sh/directory-tree@3.6.0
Sources: npm registry, npm downloads API, GitHub API. Data fetched 25 Sept 2026.

Indexability: Indexed.