MCPcopy Create free account
hub / github.com/simstudioai/sim / slugify

Function slugify

apps/sim/app/(landing)/models/utils.ts:226–232  ·  view source on GitHub ↗
(value: string)

Source from the content-addressed store, hash-verified

224}
225
226function slugify(value: string): string {
227 return value
228 .toLowerCase()
229 .replace(/[^a-z0-9]+/g, '-')
230 .replace(/^-+|-+$/g, '')
231 .replace(/--+/g, '-')
232}
233
234function getProviderPrefixes(providerId: string): string[] {
235 return PROVIDER_PREFIXES[providerId] ?? [`${providerId}/`]

Callers 1

utils.tsFile · 0.70

Calls 1

replaceMethod · 0.65

Tested by

no test coverage detected