MCPcopy Create free account
hub / github.com/TeleBoxOrg/TeleBox_Plugins / checkAndInstallDependencies

Method checkAndInstallDependencies

music/music.ts:169–183  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

167 return false;
168 }
169 }
170 }
171 return true;
172 }
173
174 private static async isPackageInstalled(
175 packageName: string
176 ): Promise<boolean> {
177 try {
178 const packagePath = path.join(process.cwd(), "node_modules", packageName);
179 await fs.promises.access(packagePath, fs.constants.F_OK);
180 return true;
181 } catch {
182 return false;
183 }
184 }
185
186 static async checkYtDlp(): Promise<boolean> {

Callers 1

initializeMethod · 0.80

Calls 2

isPackageInstalledMethod · 0.95
errorMethod · 0.80

Tested by

no test coverage detected