Skip to content

Slugify

Turn selected text into a valid post slug.
Readme

Slugify

Turn selected text into a URL-friendly post slug: lowercase, hyphens for spaces, and non-alphanumeric characters removed.

Also:

  • Accents are folded (café → cafe)
  • . → -dot-, + → -plus-, & → -and-, @ → -at-
  • Underscores become hyphens; repeated separators collapse
Info