(installedDeps: string[])
| 287 | * Returns empty string when `installedDeps` is empty. |
| 288 | */ |
| 289 | export 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 |
no outgoing calls
no test coverage detected