npm-open

0.2.0 • Public • Published

npm

npm-open

Build Status Dependency Status

A command-line utility to open the package's homepage (GitHub repository or a website) in the browser.

CLI

From any of the project's directories:

$ npm-open [--npm]

For a specific package:

$ npm-open [--npm] <directory>

Add --npm flag to open the page on npmjs.org, if this is what you really want.

API

npmOpen(directory)

Pass process.cwd() to emulate the first form.

npmOpen.npm(directory)

Related

  • pkg-open - open homepage by package name.
  • git-open - open homepage for a Git repository.

pkg-open doesn't take into account local packages and thus has to perform additional network requests.

git-open works only for git repositories (but npm-installed packages lack .git) and can't open the arbitrary home pages since its knowledge is limited to git remotes.

Install

npm install -g npm-open

License

MIT

/npm-open/

    Package Sidebar

    Install

    npm i npm-open

    Weekly Downloads

    1

    Version

    0.2.0

    License

    MIT

    Last publish

    Collaborators

    • eush77