FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

sindresorhus/package-directory-cli: Find the root directory of a Node.js project or npm package · GitHub

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

Code of conduct

Contributing

Stars

28 stars

Watchers

5 watching

Forks

Releases

Sponsor this project

Packages

Used by

Contributors

Languages


Back | FazBrowse Home | New Git URL