MCPcopy Index your code
hub / github.com/dmno-dev/bumpy / slugify

Function slugify

packages/bumpy/src/utils/names.ts:8–13  ·  view source on GitHub ↗
(name: string)

Source from the content-addressed store, hash-verified

6
7/** Sanitize a user-provided name into a valid filename slug */
8export function slugify(name: string): string {
9 return name
10 .toLowerCase()
11 .replace(/[^a-z0-9]+/g, '-')
12 .replace(/^-|-$/g, '');
13}
14
15const ADJECTIVES = [
16 'brave',

Callers 3

names.test.tsFile · 0.90
generateCommandFunction · 0.90
addCommandFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…