MCPcopy Index your code
hub / github.com/Effect-TS/effect / tagToPath

Function tagToPath

packages/workflow/src/WorkflowProxy.ts:148–152  ·  view source on GitHub ↗
(tag: string)

Source from the content-addressed store, hash-verified

146}
147
148const tagToPath = (tag: string): string =>
149 tag
150 .replace(/[^a-zA-Z0-9]+/g, "-") // Replace non-alphanumeric characters with hyphen
151 .replace(/([a-z])([A-Z])/g, "$1-$2") // Insert hyphen before uppercase letters
152 .toLowerCase()
153
154/**
155 * @since 1.0.0

Callers 1

toHttpApiGroupFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected