datasquirel/dist/package-shared/utils/slugify.d.ts
Benjamin Toby 7e8bb37c09 Updates
2025-07-05 14:59:30 +01:00

10 lines
293 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, divider?: "-" | "_" | null, allowTrailingDash?: boolean | null): string;