8000 GitHub - sindresorhus/package-directory-cli: Find the root directory of a Node.js project or npm package
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

sindresorhus/package-directory-cli

Repository files navigation

package-directory-cli

Find the root directory of a Node.js project or npm package

Install

npm install --global package-directory-cli

Usage

$ package-directory --help

  Usage
    $ package-directory <cwd>

  Examples
    $ echo $PWD
    /Users/sindresorhus/foo/bar
    $ package-directory
    /Users/sindresorhus/foo

Example

/
└── Users
    └── sindresorhus
        └── foo
            ├── package.json
            └── bar
                └── example.js
$ echo $PWD
/Users/sindresorhus/foo/bar
$ package-directory
/Users/sindresorhus/foo

Related

About

Find the root directory of a Node.js project or npm package

Resources

License

Code of conduct

Stars

Watchers

Forks

3AFF

Packages

No packages published

Contributors 2

  •  
  •  
0