npm docs [package...]

Open documentation for a package in a web browser

Arguments

NameDescription
package

Options

NameDescription
-w, --workspace <workspace...>Enable running a command in the context of the configured workspaces of the current project
-ws, --workspacesEnable running a command in the context of all the configured workspaces
--registry <registry>The base URL of the npm registry
--no-browserDisplay in command line instead of browser
--browser <browser>The browser that is called by the npm docs command to open websites