Skip to content
JS
Package

is-directory

Returns true if a filepath exists on the file system and it's directory.

v0.3.1, 21 May 2016MITCommonJSTypes: NoneFiles and file systems
$ npm install is-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
02.5m5m7.5m10mSept 2025Mar 2026Sept 2026High 8.9m (21 Oct 2025)Low 3.1m (23 Dec 2025)
Weekly npm downloads, one point per week, weeks starting 23 Sept 2025 to 15 Sept 2026. The y axis starts at zero.

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

  1. v0 first release 0.1.0, 6 Jul 2014

Recent releases

VersionPublished
0.3.121 May 2016
0.3.022 Mar 2015
0.2.317 Nov 2014
0.2.26 Sept 2014
0.2.15 Sept 2014
0.2.05 Sept 2014
0.1.119 Jul 2014
0.1.06 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
  • jsDelivrhttps://cdn.jsdelivr.net/npm/is-directory@0.3.1/
  • unpkghttps://unpkg.com/is-directory@0.3.1/
  • esm.shhttps://esm.sh/is-directory@0.3.1
PackageWeekly downloadsGzipLast releaseModuleComparison
fdir136.1m-1 year agoESM + CommonJS-
cpx209.2k-10 years agoCommonJS-
@stdlib/fs-resolve-parent-path542k-7 months agoCommonJS-
Sources: npm registry, npm downloads API, GitHub API. Data fetched 25 Sept 2026.

Indexability: Indexed.