Skip to content
JS
Package

is-subdir

Return whether a directory is a subdirectory of another directory

v2.0.0, 11 Mar 2026MITESM onlyTypes: None
$ npm install is-subdir

Key numbers

As of 25 Sept 2026
Weekly downloads
3.4m
+115% over 12 months
Gzip bundle size
-
No Bundlephobia data
Dependencies
1
Direct, from package.json
Last release
6 months ago
v2.0.0
GitHub stars
104
33 forks
Open issues / PRs
14 / 24
Contributors
-
Commits, last 52 weeks
34

Downloads

Last week 2026-09-15 to 2026-09-21
02m4m6mSept 2025Mar 2026Sept 2026High 4.8m (25 Aug 2026)Low 840.4k (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.

3,370,780 downloads last week. The 12-month change of +115% compares the average of the last 4 weeks with the first 4 weeks of the series.

Releases, last 12 months
17 in total
Latest version
2.0.0, 11 Mar 20266 months ago
First published
14 Apr 2017
Last push to GitHub
24 Sept 2026same day as the snapshot
Repository archived
No
Open issues
14
Open pull requests
24
Commits, last 52 weeks
34
Dependents on npm
-

Major versions

  1. v2 first release 2.0.0, 11 Mar 2026
  2. v1 first release 1.0.0, 14 Apr 2017

Recent releases

VersionPublished
2.0.011 Mar 2026
1.2.05 Jan 2021
1.1.16 Oct 2019
1.0.31 Mar 2019
1.0.230 Sept 2017
1.0.116 Jul 2017
1.0.014 Apr 2017
Module format
ESM onlyFrom package.json type, main and exports fields
TypeScript types
None
Node.js engine range
>=22.13
Runtimes
-
Unpacked size (npm)
3.5 kB
Dependencies (1)
better-path-resolve
npm install is-subdir
  • jsDelivrhttps://cdn.jsdelivr.net/npm/is-subdir@2.0.0/
  • unpkghttps://unpkg.com/is-subdir@2.0.0/
  • esm.shhttps://esm.sh/is-subdir@2.0.0
Sources: npm registry, npm downloads API, GitHub API. Data fetched 25 Sept 2026.

Indexability: Not indexed (discovery only): no category.