Skip to content

yarn npm info

Terminal window

This command fetches information about a package from the registry and prints it as JSON.

The argument can be any of the following forms:

  • — return information about the version associated with the latest dist-tag.

  • @ — return information about the specified version.

  • @ — return information about the highest version that satisfies the range.

  • @ — return information about the version associated with the given dist-tag.

Options

OptionDescription
--jsonFormat the output as JSON (the default)