MCPcopy Create free account
hub / github.com/R44VC0RP/opencode.cafe / extractGitHubInfo

Function extractGitHubInfo

scripts/import-awesome-list.ts:31–37  ·  view source on GitHub ↗
(url: string)

Source from the content-addressed store, hash-verified

29}
30
31function extractGitHubInfo(url: string): { owner: string; repo: string } | null {
32 const match = url.match(/github\.com\/([^\/]+)\/([^\/\)]+)/)
33 if (match) {
34 return { owner: match[1], repo: match[2].replace(/\/$/, "") }
35 }
36 return null
37}
38
39function generateProductId(name: string): string {
40 return name

Callers 1

parseMarkdownTableFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected