look-up-cli

1.0.0 • Public • Published

look-up-cli Build Status

Find a file matching a pattern by walking up parent directories

Install

$ npm install --global look-up-cli

Usage

$ look-up --help

  Usage
    $ look-up '<pattern>'

  Options
    --cwd=<dir>  Working directory

Example

/
└── Users
    └── lydell
        ├── unicorn.png
        └── foo
            └── bar
                ├── baz
                └── faz
$ echo $PWD
/Users/lydell/foo/bar/faz
$ look-up 'unicorn.{png,jpg}'
/Users/lydell/unicorn.png

Don't forget to quote your pattern so it isn't expanded by your shell.

Related

License

MIT © Sindre Sorhus and Simon Lydell

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 1.0.0
    1
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 1.0.0
    1

Package Sidebar

Install

npm i look-up-cli

Weekly Downloads

1

Version

1.0.0

License

MIT

Last publish

Collaborators

  • lydell