MCPcopy Index your code
hub / github.com/anomalyco/opencode / slugify

Function slugify

packages/opencode/src/worktree/index.ts:91–98  ·  view source on GitHub ↗
(input: string)

Source from the content-addressed store, hash-verified

89 | ListFailedError
90
91function slugify(input: string) {
92 return input
93 .trim()
94 .toLowerCase()
95 .replace(/[^a-z0-9]+/g, "-")
96 .replace(/^-+/, "")
97 .replace(/-+$/, "")
98}
99
100function failedRemoves(...chunks: string[]) {
101 return chunks.filter(Boolean).flatMap((chunk) =>

Callers 1

index.tsFile · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected