An interface that represents a dependency name with its version

interface DependencyVersion {
    name: string;
    version: undefined | string;
}

Properties

Properties

name: string

The name of the NPM dependency as it's reflected in the package.json:

Example

In the example below name would be "react"

{
"react": "1.2.3"
}
version: undefined | string

The version of the NPM dependency as it's reflected in the package.json:

Example

In the example below version would be "1.2.3"

{
"react": "1.2.3"
}