MCPcopy Index your code
hub / github.com/deepnote/deepnote / slugifyProjectName

Function slugifyProjectName

packages/convert/src/snapshot/split.ts:15–23  ·  view source on GitHub ↗
(name: string)

Source from the content-addressed store, hash-verified

13 * @returns A URL-safe slug
14 */
15export function slugifyProjectName(name: string): string {
16 return name
17 .normalize('NFD')
18 .replace(/[\u0300-\u036f]/g, '')
19 .toLowerCase()
20 .replace(/[^a-z0-9]+/g, '-')
21 .replace(/-+/g, '-')
22 .replace(/^-|-$/g, '')
23}
24
25/** Arguments for {@link generateSnapshotFilename}. */
26export interface GenerateSnapshotFilenameParams {

Callers 4

split.test.tsFile · 0.90
getSnapshotPathFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected