npm

Ready to take your JavaScript development to the next level? Meet npm Enterprise - the ultimate in enterprise JavaScript. Learn more »

find-up-cli

3.0.0 • Public • Published

find-up-cli Build Status

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=<dir>  Working directory

Example

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

Related

License

MIT © Sindre Sorhus

install

npm i find-up-cli

Downloadsweekly downloads

168

version

3.0.0

license

MIT

homepage

github.com

repository

Gitgithub

last publish

collaborators

  • avatar
Report a vulnerability