Skip to content
JS
Package

find-parent-dir

Finds the first parent directory that contains a given file or directory.

v0.3.1, 14 May 2021MITCommonJSTypes: None
$ npm install find-parent-dir

Key numbers

As of 25 Sept 2026
Weekly downloads
574.5k
+1% over 12 months
Gzip bundle size
-
No Bundlephobia data
Dependencies
0
Direct, from package.json
Last release
5 years ago
v0.3.1
GitHub stars
24
8 forks
Open issues / PRs
2 / 0
Contributors
-
Commits, last 52 weeks
0

Downloads

Last week 2026-09-15 to 2026-09-21
0500k1m1.5mSept 2025Mar 2026Sept 2026High 1m (25 Nov 2025)Low 338.9k (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.

574,462 downloads last week. The 12-month change of +1% 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
0.3.1, 14 May 20215 years ago
First published
25 May 2013
Last push to GitHub
14 May 20211,959 days before the snapshot
Repository archived
No
Open issues
2
Open pull requests
0
Commits, last 52 weeks
0
Dependents on npm
-

Major versions

  1. v0 first release 0.1.0, 25 May 2013

Recent releases

VersionPublished
0.3.114 May 2021
0.3.029 Mar 2014
0.2.13 Feb 2014
0.2.027 Jan 2014
0.1.025 May 2013
Module format
CommonJSFrom package.json type, main and exports fields
TypeScript types
None
Node.js engine range
Not declared
Runtimes
-
Unpacked size (npm)
5.0 kB
Dependencies (0)
None
npm install find-parent-dir
  • jsDelivrhttps://cdn.jsdelivr.net/npm/find-parent-dir@0.3.1/
  • unpkghttps://unpkg.com/find-parent-dir@0.3.1/
  • esm.shhttps://esm.sh/find-parent-dir@0.3.1
Sources: npm registry, npm downloads API, GitHub API. Data fetched 25 Sept 2026.

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