GitShow/sindresorhus/find-up-simple
sindresorhus

find-up-simple

Find a file or directory by walking up parent directories — Zero dependencies

by sindresorhus
Star on GitHubForknpm

JavaScript

83 stars4 forks2 contributorsQuiet · 1y agoSince 2023v1.0.1MIT

Meet the team

See all 2 on GitHub →
sindresorhus
sindresorhus5 contributions
privatenumber
privatenumber2 contributions

Languages

View on GitHub →
JavaScript100%

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 fixes

View closed PRs →
schplitt
feat: add levels option to limit directory traversal depthMergedPR

Adds a option to both and functions, allowing users to limit the maximum number of parent directories to traverse. This is useful for scenarios where you want to restrict searches to a specific depth. Defaults to to maintain backward compatibility Works with both file and directory searches Respects option when both are specified closes #6

schplitt · 6mo ago
schplitt
Add levels option to limit directory traversal depthClosedIssue

Nice library! I have a use case where I need to limit the number of parent directories to traverse before stopping the search. Would be useful to add a option to control the maximum search depth.

schplitt · 6mo ago
juliankasimir
SyntaxError: Unexpected token '?' with Node.js v20.6.1ClosedIssue

Hi, I'm encountering an issue with when using it in combination with Lefthook and cspell under Node.js v20.6.1. The error message is as follows: Reproduction Steps 1. Setup Lefthook: Create a configuration with the following hook: 2. Install Dependencies: Ensure you have , , and installed as dependencies. 3. Run Lefthook: Make a commit that triggers the hook. Issue Details The above setup leads to the following error due to the use of optional chaining () in : It seems like this might be a compatibility issue with the latest Node.js version. Could you please investigate and advise on how to resolve this? Thank you!

juliankasimir · 1y ago
Structured data for AI agents

Repository: sindresorhus/find-up-simple. Description: Find a file or directory by walking up parent directories — Zero dependencies Stars: 83, Forks: 4. Primary language: JavaScript. Languages: JavaScript (100%). License: MIT. Latest release: v1.0.1 (1y ago). Open PRs: 0, open issues: 0. Last activity: 1y ago. Community health: 85%. Top contributors: sindresorhus, privatenumber.

·@ofershap

Replace github.com with gitshow.dev