Tree

Introduction
The tree option will print the dependency tree for a particular Node.js package or a local project, e.g.:
pkga tree --package react
This command will print the dependency tree for the latest version of react.
Options
| Argument | Description |
|---|---|
--package | name and version of package e.g. react@17.0.2, will default to latest version if no version is provided |
--folder | path to a local package.json on the filesystem |
--type | Which type of dependencies to traverse: dependencies or devDependencies. Defaults to dependencies. |
Example Usages
Print dependencies tree for a particular version
pkga tree --package react@17.0.2
Print dependencies tree for latest version
#omit version to default to latest version
pkga tree --package react
Print devDependencies tree for a package
pkga tree --package react@17.0.2 --type devDependencies
Print dependencies tree for a local project
pkga tree --folder ./path/to/package.json