Converts a string into a URL-friendly slug. Handles accents and special characters.

Syntax

TypeScript
import { slugify } from "@opentf/std";

slugify(str: string)

Examples

TypeScript
slugify('Hello World!'); //=> 'hello-world'

slugify('Café au Lait'); //=> 'cafe-au-lait'

slugify('Special characters like @#$%'); //=> 'special-characters-like'
Last updated on
Edit this page