Skip to content

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

License

Notifications You must be signed in to change notification settings

fabiospampinato/find-up-path

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

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

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published