Function slugify
Parameters
- text: string
Text to convert
- options: { keep?: string; separator?: string } = {}
Options for slugification
Optionalkeep?: stringSet of characters to keep in addition to a-z0-9
Optionalseparator?: stringSeparator to use between words (defaults to '-')
Returns null | string
Slugified text or null if we couldn't generate anything reeadable
- text: string
Generate a slug from a (suggested) (file)name