JSPM

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

Find a file by walking up parent directories

Package Exports

    This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (find-up-cli) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

    Readme

    find-up-cli

    Find a file by walking up parent directories

    Install

    npm install --global find-up-cli

    Usage

    $ find-up --help
    
      Usage
        $ find-up <filename>
    
      Options
        --cwd=<directory>  Working directory
        --all              Output all matching files, not just the first
    
      Example
        $ echo $PWD
        /Users/sindresorhus/foo/bar
        $ find-up unicorn.png
        /Users/sindresorhus/unicorn.png
        $ find-up unicorn.png --all
        /Users/sindresorhus/foo/unicorn.png
        /Users/sindresorhus/unicorn.png

    Example

    /
    └── Users
        └── sindresorhus
            ├── unicorn.png
            └── foo
                └── bar
                    ├── baz
                    └── faz
    $ echo $PWD
    /Users/sindresorhus/foo/bar/faz
    $ find-up unicorn.png
    /Users/sindresorhus/unicorn.png