Gathering detailed insights and metrics for find-up-simple
Gathering detailed insights and metrics for find-up-simple
Gathering detailed insights and metrics for find-up-simple
Gathering detailed insights and metrics for find-up-simple
Find a file or directory by walking up parent directories — Zero dependencies
npm install find-up-simple
Module System
Min. Node Version
Typescript Support
Node Version
NPM Version
71 Stars
3 Commits
3 Watching
1 Branches
1 Contributors
Updated on 22 Oct 2024
JavaScript (100%)
Cumulative downloads
Total Downloads
Last day
-1.2%
387,735
Compared to previous day
Last week
2.1%
2,176,730
Compared to previous week
Last month
6.9%
9,320,553
Compared to previous month
Last year
6,719.2%
59,833,652
Compared to previous year
Find a file or directory by walking up parent directories
This is a simpler version of my find-up
package, now with zero dependencies.
1npm install find-up-simple
/
└── Users
└── sindresorhus
├── unicorn.png
└── foo
└── bar
├── baz
└── example.js
example.js
1import path from 'node:path'; 2import {findUp} from 'find-up-simple'; 3 4console.log(await findUp('unicorn.png')); 5//=> '/Users/sindresorhus/unicorn.png'
Returns a Promise
for the found path or undefined
if it could not be found.
Returns the found path or undefined
if it could not be found.
Type: string
The name of the file or directory to find.
Type: object
Type: URL | string
Default: process.cwd()
The directory to start from.
Type: string
Default: 'file'
Values: 'file' | 'directory'
The type of path to match.
Type: URL | string
Default: Root directory
A directory path where the search halts if no matches are found before reaching this point.
find-up
?No vulnerabilities found.
Reason
no binaries found in the repo
Reason
no dangerous workflow patterns detected
Reason
security policy file detected
Details
Reason
0 existing vulnerabilities detected
Reason
license file detected
Details
Reason
Found 0/3 approved changesets -- score normalized to 0
Reason
0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0
Reason
no SAST tool detected
Details
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
detected GitHub workflow tokens with excessive permissions
Details
Reason
dependency not pinned by hash detected -- score normalized to 0
Details
Reason
project is not fuzzed
Details
Reason
branch protection not enabled on development/release branches
Details
Score
Last Scanned on 2024-11-18
The Open Source Security Foundation is a cross-industry collaboration to improve the security of open source software (OSS). The Scorecard provides security health metrics for open source projects.
Learn More