MCPcopy
hub / github.com/upstash/context7 / nameWithRepoLen

Function nameWithRepoLen

packages/cli/src/commands/skill.ts:509–509  ·  view source on GitHub ↗
(s: SkillSearchResult)

Source from the content-addressed store, hash-verified

507 const indexWidth = data.results.length.toString().length;
508 const nameWithRepo = (s: SkillSearchResult) => `${s.name} ${pc.dim(`(${s.project})`)}`;
509 const nameWithRepoLen = (s: SkillSearchResult) => `${s.name} (${s.project})`.length;
510 const maxNameLen = Math.max(...data.results.map(nameWithRepoLen));
511 const popularityColWidth = 13;
512 const choices = data.results.map((s, index) => {

Callers 2

searchCommandFunction · 0.85
suggestCommandFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected