datasquirel/dist/package-shared/utils/slugify.d.ts
Benjamin Toby 6593047efd Updates
2025-04-18 12:06:15 +01:00

10 lines
228 B
TypeScript

/**
* # Return the slug of a string
*
* @example
* slugify("Hello World") // "hello-world"
* slugify("Yes!") // "yes"
* slugify("Hello!!! World!") // "hello-world"
*/
export default function slugify(str: string): string;