MCPcopy Create free account
hub / github.com/simstudioai/sim / slugify

Function slugify

apps/sim/lib/blog/registry.ts:35–41  ·  view source on GitHub ↗
(text: string)

Source from the content-addressed store, hash-verified

33}
34
35function slugify(text: string): string {
36 return text
37 .toLowerCase()
38 .trim()
39 .replace(/[^a-z0-9\s-]/g, '')
40 .replace(/\s+/g, '-')
41}
42
43async function scanFrontmatters(): Promise<BlogMeta[]> {
44 if (cachedMeta) {

Callers 1

getPostBySlugFunction · 0.70

Calls 1

replaceMethod · 0.65

Tested by

no test coverage detected