MCPcopy Index your code
hub / github.com/alibaba/lowcode-engine / isNPMInstalled

Function isNPMInstalled

modules/material-parser/src/utils.ts:8–14  ·  view source on GitHub ↗
(args: {
  workDir: string;
  moduleDir: string;
  npmClient?: string;
})

Source from the content-addressed store, hash-verified

6import { DSLType } from './types';
7
8export async function isNPMInstalled(args: {
9 workDir: string;
10 moduleDir: string;
11 npmClient?: string;
12}) {
13 return pathExists(path.join(args.workDir, 'node_modules'));
14}
15
16export async function isNPMModuleInstalled(
17 args: { workDir: string; moduleDir: string; npmClient?: string },

Callers 1

installFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…