const slugify = (str: string) => str .toLowerCase() .replace(/ /g, "-") .replace(/[^\w-]+/g, ""); export default slugify;