function slugify slugify(text: string): string Converts a string to a URL-safe slug. Diacritics are stripped, punctuation is removed, and whitespace is replaced with hyphens. Examples Example 1 slugify(null); // "" slugify("Hello World!"); // "hello-world" slugify("Café à la Carte"); // "cafe-a-la-carte" Parameters text: string Return Type string