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: 3 months ago
JSON representation

Find the path of the first file matching a given name, walking the filesystem upwards.

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 find-up-path
```

## Usage

```ts
import findUpPath from 'find-up-path';

// Let's find the path of the nearest `package.json` file

const packagePath = findUpPath ( 'package.json' ); // => '/path/to/package.json' | undefined
```

## License

MIT © Fabio Spampinato