Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/fabiospampinato/find-up-path
Find the path of the first file matching a given name, walking the filesystem upwards.
https://github.com/fabiospampinato/find-up-path
file find folder path up
Last synced: 19 days ago
JSON representation
Find the path of the first file matching a given name, walking the filesystem upwards.
- Host: GitHub
- URL: https://github.com/fabiospampinato/find-up-path
- Owner: fabiospampinato
- License: mit
- Created: 2024-03-04T01:47:27.000Z (10 months ago)
- Default Branch: master
- Last Pushed: 2024-03-04T01:47:29.000Z (10 months ago)
- Last Synced: 2024-11-20T17:44:22.156Z (about 1 month ago)
- Topics: file, find, folder, path, up
- Language: JavaScript
- Homepage:
- Size: 1.95 KB
- Stars: 2
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
- License: license
Awesome Lists containing this project
README
# Find Up Path
Find the path of the first file matching a given name, walking the filesystem upwards.
## Install
```sh
npm install --save find-up-path
```## Usage
```ts
import findUpPath from 'find-up-path';const packagePath = findUpPath ( 'package.json' ); // => '/path/to/package.json' | undefined
```## License
MIT © Fabio Spampinato