MCPcopy Create free account
hub / github.com/adrianhajdin/threads / formatThreadCount

Function formatThreadCount

lib/utils.ts:35–43  ·  view source on GitHub ↗
(count: number)

Source from the content-addressed store, hash-verified

33
34// created by chatgpt
35export function formatThreadCount(count: number): string {
36 if (count === 0) {
37 return "No Threads";
38 } else {
39 const threadCount = count.toString().padStart(2, "0");
40 const threadWord = count === 1 ? "Thread" : "Threads";
41 return `${threadCount} ${threadWord}`;
42 }
43}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…