yarn npm info — Yarn CLI reference
Show information about a package
Docs/Reference/CLI/npm/info
yarn npm info
Show information about a package
yarn npm info <PACKAGE>
This command fetches information about a package from the registry and prints it as JSON.
The argument can be any of the following forms:
-
<name>— return information about the version associated with thelatestdist-tag. -
<name>@<version>— return information about the specified version. -
<name>@<range>— return information about the highest version that satisfies the range. -
<name>@<tag>— return information about the version associated with the given dist-tag.
Format the output as JSON (the default)