MCPcopy Create free account
hub / github.com/Acode-Foundation/Acode / getPackageManager

Function getPackageManager

utils/setup.js:35–44  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

33}
34
35function getPackageManager() {
36 const userAgent = process.env.npm_config_user_agent;
37 const packageManager = userAgent?.split("/")[0];
38
39 if (PACKAGE_MANAGERS.has(packageManager)) {
40 return packageManager;
41 }
42
43 return "npm";
44}
45
46function installDependencies() {
47 const packageManager = getPackageManager();

Callers 1

installDependenciesFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected