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

Function generateProductId

scripts/import-awesome-list.ts:39–47  ·  view source on GitHub ↗
(name: string)

Source from the content-addressed store, hash-verified

37}
38
39function generateProductId(name: string): string {
40 return name
41 .toLowerCase()
42 .replace(/[^a-z0-9\s-]/g, "")
43 .replace(/\s+/g, "-")
44 .replace(/-+/g, "-")
45 .replace(/^-|-$/g, "")
46 .slice(0, 50)
47}
48
49function parseMarkdownTable(section: string, category: string): ParsedExtension[] {
50 const extensions: ParsedExtension[] = []

Callers 1

importToConvexFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected