Package
is-directory
Returns true if a filepath exists on the file system and it's directory.
Key numbers
As of 25 Sept 2026
- Weekly downloads
- 7.1m
- -20% over 12 months
- Gzip bundle size
- -
- No Bundlephobia data
- Dependencies
- 0
- Direct, from package.json
- Last release
- 10 years ago
- v0.3.1
- GitHub stars
- 27
- 8 forks
- Open issues / PRs
- 1 / 0
- Contributors
- -
- Commits, last 52 weeks
- 0
Downloads
Last week 2026-09-15 to 2026-09-21
7,084,669 downloads last week, 24,151,469 in the last month. The 12-month change of -20% compares the average of the last 4 weeks with the first 4 weeks of the series.
- Releases, last 12 months
- 08 in total
- Latest version
- 0.3.1, 21 May 201610 years ago
- First published
- 6 Jul 2014
- Last push to GitHub
- 21 Nov 20163,594 days before the snapshot
- Repository archived
- No
- Open issues
- 1
- Open pull requests
- 0
- Commits, last 52 weeks
- 0
- Dependents on npm
- 606
Major versions
- v0 first release 0.1.0, 6 Jul 2014
Recent releases
| Version | Published |
|---|---|
| 0.3.1 | 21 May 2016 |
| 0.3.0 | 22 Mar 2015 |
| 0.2.3 | 17 Nov 2014 |
| 0.2.2 | 6 Sept 2014 |
| 0.2.1 | 5 Sept 2014 |
| 0.2.0 | 5 Sept 2014 |
| 0.1.1 | 19 Jul 2014 |
| 0.1.0 | 6 Jul 2014 |
- Module format
- CommonJSFrom package.json type, main and exports fields
- TypeScript types
- None
- Node.js engine range
- >=0.10.0
- Runtimes
- -
- Unpacked size (npm)
- -
- Dependencies (0)
- None
npm install is-directory- jsDelivr
https://cdn.jsdelivr.net/npm/is-directory@0.3.1/ - unpkg
https://unpkg.com/is-directory@0.3.1/ - esm.sh
https://esm.sh/is-directory@0.3.1
| Package | Weekly downloads | Gzip | Last release | Module | Comparison |
|---|---|---|---|---|---|
| fdir | 136.1m | - | 1 year ago | ESM + CommonJS | - |
| cpx | 209.2k | - | 10 years ago | CommonJS | - |
| @stdlib/fs-resolve-parent-path | 542k | - | 7 months ago | CommonJS | - |
Indexability: Indexed.