MCPcopy
hub / github.com/ionic-team/capacitor / isInstalled

Function isInstalled

cli/src/util/subprocess.ts:38–46  ·  view source on GitHub ↗
(command: string)

Source from the content-addressed store, hash-verified

36}
37
38export async function isInstalled(command: string): Promise<boolean> {
39 try {
40 await which(command);
41 } catch (e) {
42 return false;
43 }
44
45 return true;
46}

Callers 4

determinePackageManagerFunction · 0.90
checkXcodeFunction · 0.90
checkCocoaPodsFunction · 0.90
updatePodfileFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected