Skip to content

Slugify

slugify is a function convert a string to a URL-friendly slug.

Example

This function will convert the string into a friendly URL which has an impact on SEO(Search Engine Optimization):

ts
import { slugify } from "@titocandradev/neatcore";

const result = slugify("Hello World");
// hello-world