getPackageVersion

external fun getPackageVersion(target: String): Promise<String>

Get the version of a package from its package.json, where target is the package directory.