Socket
Book a DemoInstallSign in
Socket

find-up-cli

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

find-up-cli

Find a file by walking up parent directories

latest
Source
npmnpm
Version
6.0.0
Version published
Weekly downloads
1.6K
-1.52%
Maintainers
1
Weekly downloads
 
Created
Source

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
  • find-up - API for this module

Keywords

cli-app

FAQs

Package last updated on 03 Feb 2024

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts