Skip to main content

Analyze

Analyze Screenshot

Introduction

The analyze option lets you quickly introspect a particular Node.js package, e.g.:

pkga analyze --package react

This command will introspect the latest version of react.

Options

ArgumentDescription
--packagename of package to analyze e.g. react@17.0.2, will default to latest version if no version is provided
--folderpath to a local package.json on the filesystem
--typeWhich type of dependencies to traverse dependencies or devDependencies, defaults to dependencies
--fullShow additional information, like oldest/newest package

Example Usages

Analyze a specific version

pkga analyze --package react@17.0.2

Analyze latest version

#omit version to default to latest version
pkga analyze --package react

Analyze a local project

pkga analyze --folder ./path/to/package.json