MCPcopy Create free account
hub / github.com/boringstack-xyz/boringstack / readReadmeCommandKeys

Function readReadmeCommandKeys

apps/ui/scripts/check-scripts-docs.ts:35–48  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

33}
34
35function readReadmeCommandKeys(): Set<string> {
36 const text = readFileSync(README_PATH, "utf8");
37 const keys = new Set<string>();
38
39 for (const match of text.matchAll(/\|\s*`bun run\s+([^`]+)`\s*\|/gu)) {
40 const key = match[1]?.trim();
41
42 if (key !== undefined && key.length > 0) {
43 keys.add(key);
44 }
45 }
46
47 return keys;
48}
49
50function main(): void {
51 const wired = readPackageScriptKeys();

Callers 1

mainFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected