Skip to content
JS
Package

commondir

compute the closest common parent for file paths

v1.0.1, 14 Mar 2015MITCommonJSTypes: None
$ npm install commondir

Key numbers

As of 25 Sept 2026
Weekly downloads
33.5m
+45% over 12 months
Gzip bundle size
-
No Bundlephobia data
Dependencies
0
Direct, from package.json
Last release
11 years ago
v1.0.1
GitHub stars
-
Open issues / PRs
- / -
Contributors
-
Commits, last 52 weeks
-

Downloads

Last week 2026-09-15 to 2026-09-21
020m40m60mSept 2025Mar 2026Sept 2026High 41.9m (25 Aug 2026)Low 12.8m (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.

33,545,127 downloads last week, 153,190,306 in the last month. The 12-month change of +45% compares the average of the last 4 weeks with the first 4 weeks of the series.

Releases, last 12 months
05 in total
Latest version
1.0.1, 14 Mar 201511 years ago
First published
28 Jun 2011
Last push to GitHub
-
Repository archived
-
Open issues
-
Open pull requests
-
Commits, last 52 weeks
-
Dependents on npm
1,243

Major versions

  1. v1 first release 1.0.0, 14 Mar 2015
  2. v0 first release 0.0.0, 28 Jun 2011

Recent releases

VersionPublished
1.0.114 Mar 2015
1.0.014 Mar 2015
0.0.214 Mar 2015
0.0.116 Nov 2011
0.0.028 Jun 2011
Module format
CommonJSFrom package.json type, main and exports fields
TypeScript types
None
Node.js engine range
Not declared
Runtimes
-
Unpacked size (npm)
-
Dependencies (0)
None
npm install commondir
  • jsDelivrhttps://cdn.jsdelivr.net/npm/commondir@1.0.1/
  • unpkghttps://unpkg.com/commondir@1.0.1/
  • esm.shhttps://esm.sh/commondir@1.0.1
Sources: npm registry, npm downloads API, GitHub API. Data fetched 25 Sept 2026.

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