find-up-path
TypeScript icon, indicating that this package has built-in type declarations

1.0.1 • Public • Published

Find Up Path

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

Install

npm install find-up-path

Usage

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

Readme

Keywords

Package Sidebar

Install

npm i find-up-path

Weekly Downloads

19,931

Version

1.0.1

License

MIT

Unpacked Size

3.11 kB

Total Files

5

Last publish

Collaborators

  • fabiospampinato