GitShow/sindresorhus/find-up
sindresorhus

find-up

Find a file or directory by walking up parent directories

by sindresorhus
Star on GitHubForknpm

JavaScript

640 stars49 forks17 contributorsQuiet · 9mo agoSince 2015v8.0.0MIT

Meet the team

See all 17 on GitHub →
sindresorhus
sindresorhus54 contributions
sholladay
sholladay4 contributions
coreyfarrell
coreyfarrell3 contributions
SamVerschueren
SamVerschueren3 contributions
vast
vast2 contributions
zhangenming
zhangenming1 contribution
fisker
fisker1 contribution
TiagoDanin
TiagoDanin1 contribution

Languages

View on GitHub →
JavaScript66.9%
TypeScript33.1%

Commit activity

Last 12 weeks · 0 commits

Full graph →

Community health

4 of 6 standards met

Community profile →
85
✓README✓License✓Contributing✓Code of Conduct○Issue Template○PR Template

Recent PRs & issues

Quiet · 1 discussion · Last activity 9mo ago
See all on GitHub →
gtbuchanan
No "exports" main defined in `unicorn-magic/package.json`OpenIssue

I'm receiving the following error with Node v24 after upgrading to v8.0.0: I see that has a recent commit regarding bundler compatibility. However, forcing 8 to use v0.4.0 with pnpm results in the same error. Example : I even tried using pnpm to patch to import per the doc: However, it results in the error: I'm not using a bundler like #67, but another user left a comment there with a similar problem as me. Do you have any ideas?

gtbuchanan · 6mo ago

Recent fixes

View closed PRs →
Jason3S
7.0.0 breaks when using a bundler (Rollup).ClosedIssue

Rollup is resolving to instead of . Based upon the default rules used by https://www.npmjs.com/package/@rollup/plugin-node-resolve See: https://github.com/sindresorhus/find-up/commit/187b2a14df987a9046b074836932594549238d56#r133637011 Is it really necessary to have a dependency upon for a single line function?

Jason3S · 7mo ago
rrthomas
Please allow searching for a file or directoryClosedIssue

At the moment can be only or ; it would be good to be able to search for both. Use case: searching for in a context where there are sub-modules, and I want to find the nearest file or directory. Thanks for find-up!

rrthomas · 9mo ago
makbol
Search in upper directories with depth based on paramClosedIssue

While walking up recursively check also subdirectories for a searched file. Depth is set by param. I can offer help with that if you are open for PRs.

makbol · 9mo ago
Structured data for AI agents

Repository: sindresorhus/find-up. Description: Find a file or directory by walking up parent directories Stars: 640, Forks: 49. Primary language: JavaScript. Languages: JavaScript (66.9%), TypeScript (33.1%). License: MIT. Latest release: v8.0.0 (9mo ago). Open PRs: 0, open issues: 1. Last activity: 9mo ago. Community health: 85%. Top contributors: sindresorhus, sholladay, coreyfarrell, SamVerschueren, vast, zhangenming, fisker, TiagoDanin, Richienb, mathieumg and others.

·@ofershap

Replace github.com with gitshow.dev