MCPcopy Create free account
hub / github.com/colbymchenry/codegraph / countMeta

Function countMeta

ui/src/lib/entry-model.ts:193–196  ·  view source on GitHub ↗

"42 of 208" when the list was cut, "42" when it was not.

(list: { shown: number; total: number }, floor: boolean)

Source from the content-addressed store, hash-verified

191
192/** "42 of 208" when the list was cut, "42" when it was not. */
193function countMeta(list: { shown: number; total: number }, floor: boolean): string {
194 if (list.shown >= list.total) return `${list.shown}`;
195 return `${list.shown} of ${floor ? 'at least ' : ''}${list.total}`;
196}
197
198/**
199 * "gin", "express and spring" — the frameworks behind a route list.

Callers 1

sectionFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected