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

Function checkDependsOn

scripts/utils.mjs:193–196  ·  view source on GitHub ↗
(pkg, dependency)

Source from the content-addressed store, hash-verified

191 * the given dependency
192 */
193export function checkDependsOn(pkg, dependency) {
194 const allDeps = getPackageDependencies(pkg)
195 return allDeps.includes(dependency)
196}
197
198/**
199 * Given a dependency tree, do a pretty console log of the graph

Callers 2

getDependencyTreeFunction · 0.85

Calls 1

getPackageDependenciesFunction · 0.85

Tested by

no test coverage detected