MCPcopy Create free account
hub / github.com/MoonshotAI/kimi-code / npmCommand

Function npmCommand

apps/kimi-code/src/cli/update/source.ts:75–77  ·  view source on GitHub ↗
(platform: NodeJS.Platform)

Source from the content-addressed store, hash-verified

73}
74
75function npmCommand(platform: NodeJS.Platform): string {
76 return platform === 'win32' ? 'npm.cmd' : 'npm';
77}
78
79function execFileText(command: string, args: readonly string[]): Promise<string> {
80 return new Promise((resolveOutput, reject) => {

Callers 1

detectInstallSourceFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected