Struct npm_parser::outdated::PackageStatus  
source · pub struct PackageStatus {
    pub wanted: String,
    pub latest: String,
    pub location: Option<String>,
    pub dependent: Option<String>,
    pub package_type: String,
    pub homepage: Option<String>,
}Expand description
Inner, per-package structure when parsing npm-outdated output
Meaning of the fields is from npm-outdated
Fields§
§wanted: Stringwanted is the maximum version of the package that satisfies the semver range specified in package.json. If there’s no available semver range (i.e. you’re running npm outdated –global, or the package isn’t included in package.json), then wanted shows the currently-installed version.
latest: Stringlatest is the version of the package tagged as latest in the registry. Running npm publish with no special configuration will publish the package with a dist-tag of latest. This may or may not be the maximum version of the package, or the most-recently published version of the package, depending on how the package’s developer manages the latest dist-tag.
location: Option<String>where in the physical tree the package is located.
dependent: Option<String>shows which package depends on the displayed dependency
optional since it is new between npm version 6 and 8
package_type: Stringtells you whether this package is a dependency or a dev/peer/optional dependency. Packages not included in package.json are always marked dependencies.
homepage: Option<String>the homepage value contained in the package’s packument
optional since it is not included in all npm versions