Skip to content

workloads / introspection / packageVersion

Function: packageVersion() ​

ts
function packageVersion(packageName, projectRoot?): Promise<undefined | string>

Returns the installed version of a package or undefined if the package is not installed.

Parameters ​

ParameterType

packageName

string

projectRoot?

string

Returns ​

Promise<undefined | string>