yarn npm info
Show information about a package.
$> yarn npm info [-f,--fields #0] [--json] ...
Show all available information about react (except the
yarn npm info react
Show all available information about react as valid JSON (including the
yarn npm info react --json
Show all available information about react 16.12.0 :
yarn npm info email@example.com
Show the description of react :
yarn npm info react --fields description
Show all available versions of react :
yarn npm info react --fields versions
Show the readme of react :
yarn npm info react --fields readme
Show a few fields of react :
yarn npm info react --fields homepage,repository
This command will fetch information about a package from the npm registry, and prints it in a tree format.
The package does not have to be installed locally, but needs to have been published (in particular, local changes will be ignored even for workspaces).
@<range> to the package argument to provide information specific to the
latest version that satisfies the range. If the range is invalid or if there is
no version satisfying the range, the command will print a warning and fall back
to the latest version.
-f,--fields option is set, it's a comma-separated list of fields which
will be used to only display part of the package informations.
By default, this command won't return the
since they are often very long. To explicitly request those fields, explicitly
list them with the
--fields flag or request the output in JSON mode.
--json flag is set the output will follow a JSON-stream output also
known as NDJSON (https://github.com/ndjson/ndjson-spec).