Skip to content

Claude Code. Any Model. The most powerful AI coding agent now speaks every language.

236 B
Raw Blame
// Turn a title into a URL slug: lower case, ASCII letters and digits only,
// words joined by single hyphens, no hyphen at either end.
export function slugify(title: string): string {
  return title.toLowerCase().replace(/ /g, "-");
}