MCPcopy Create free account
hub / github.com/Noumena-Network/code / formatDependencyCountSuffix

Function formatDependencyCountSuffix

src/utils/plugins/dependencyResolver.ts:289–293  ·  view source on GitHub ↗
(installedDeps: string[])

Source from the content-addressed store, hash-verified

287 * Returns empty string when `installedDeps` is empty.
288 */
289export function formatDependencyCountSuffix(installedDeps: string[]): string {
290 if (installedDeps.length === 0) return ''
291 const n = installedDeps.length
292 return ` (+ ${n} ${n === 1 ? 'dependency' : 'dependencies'})`
293}
294
295/**
296 * Format the "warning: required by X, Y" suffix for uninstall/disable

Callers 1

installResolvedPluginFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected