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

Function readReadmeCommandKeys

apps/api/scripts/check-scripts-docs.ts:43–56  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

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

Callers 1

mainFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected