Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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.

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