API Reference

Returns a string lowercased with non letter/number characters removed and spaces and underscores replaced with a separator (- by default)

function slugify(str: string, separator = "-")

// Example:

slugify("This is the 42nd blog post title!") //=> "this-is-the-42nd-blog-post-title"

slugify("This is the blog post title!", "_") //=> "this_is_the_blog_post_title"