JSPM

find-up-path

1.0.1
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 27046
  • Score
    100M100P100Q143629F
  • License MIT

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

Package Exports

  • find-up-path

Readme

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