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

Function slugify

e2e/src/scenario.ts:48–53  ·  view source on GitHub ↗
(text: string)

Source from the content-addressed store, hash-verified

46export const RUNS_DIR = fileURLToPath(new URL("../runs/", import.meta.url));
47
48export const slugify = (text: string): string =>
49 text
50 .toLowerCase()
51 .replace(/[^a-z0-9]+/g, "-")
52 .replace(/^-+|-+$/g, "")
53 .slice(0, 80);
54
55export interface ScenarioOptions {
56 readonly timeout?: number;

Callers 1

scenarioFunction · 0.70

Calls 1

replaceMethod · 0.65

Tested by

no test coverage detected