MCPcopy Create free account
hub / github.com/UsefulSoftwareCo/executor / slug

Function slug

e2e/src/surfaces/browser.ts:32–37  ·  view source on GitHub ↗
(text: string)

Source from the content-addressed store, hash-verified

30}
31
32const slug = (text: string): string =>
33 text
34 .toLowerCase()
35 .replace(/[^a-z0-9]+/g, "-")
36 .replace(/^-+|-+$/g, "")
37 .slice(0, 60);
38
39// acquireUseRelease so a vitest timeout (fiber interruption) still closes the
40// browser and flushes video + trace — a bare promise would leak Chromium.

Callers 1

stepFunction · 0.85

Calls 1

replaceMethod · 0.65

Tested by

no test coverage detected