See information related to packages.
$> yarn info ...
Show information about Lodash :
yarn info lodash
||Print versions of a package from the whole project|
||An array of requests of extra data provided by plugins|
||Print information about the cache entry of a package (path, size, checksum)|
||Print all dependents for each matching package|
||Print data obtained by looking at the package archive (license, homepage, ...)|
||Print each instance of the virtual packages|
||Format the output as an NDJSON stream|
This command prints various information related to the specified packages, accepting glob patterns.
By default, if the locator reference is missing, Yarn will default to print the
information about all versions of the package in the active workspace dependency
tree. To instead print all versions of the package in the whole project, use the
Some fields will be hidden by default in order to keep the output readable, but
can be selectively displayed by using additional options (
--virtuals, ...) described in the option descriptions.
Note that this command will only print the information directly related to the
selected packages - if you wish to know why the package is there in the first
yarn why which will do just that (it also provides a
-R,--recursive flag that may be of some help).