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

Function slugifyNamespace

packages/react/src/plugins/namespace.ts:6–12  ·  view source on GitHub ↗
(input: string)

Source from the content-addressed store, hash-verified

4 * strings that are safe to use as TypeScript/tool-name prefixes.
5 */
6export function slugifyNamespace(input: string): string {
7 return input
8 .trim()
9 .toLowerCase()
10 .replace(/[^a-z0-9_]+/g, "_")
11 .replace(/^_+|_+$/g, "");
12}
13
14/**
15 * Sanitizes namespace input as the user types without removing intentional

Callers 5

useIntegrationIdentityFunction · 0.90
AddOpenApiIntegrationFunction · 0.85
AddMcpIntegrationFunction · 0.85
AddGraphqlIntegrationFunction · 0.85

Calls 1

replaceMethod · 0.65

Tested by

no test coverage detected