MCPcopy Create free account
hub / github.com/formkit/formkit / getPackageVersion

Function getPackageVersion

scripts/utils.mjs:292–295  ·  view source on GitHub ↗
(pkg)

Source from the content-addressed store, hash-verified

290 * Given a package name get the current version frem the package.json
291 */
292export function getPackageVersion(pkg) {
293 const packageJSON = getPackageJSON(pkg)
294 return packageJSON.version
295}
296
297/**
298 * Given a dependency and parent package get the current version of the dependency

Callers 1

drawDependencyTreeFunction · 0.85

Calls 1

getPackageJSONFunction · 0.85

Tested by

no test coverage detected