slugify
slugify(
params):string
Defined in: strings/slugify/index.ts:20
Converts a string to a URL-friendly slug.
Parameters
Section titled “Parameters”params
Section titled “params”SlugifyParams
The parameters object
Returns
Section titled “Returns”string
A lowercase, hyphen-separated slug
Example
Section titled “Example”slugify({ str: "Hello World!" });// => "hello-world"Keywords
Section titled “Keywords”url slug, url friendly, permalink, dash case url
Throws
Section titled “Throws”Error if str is not a string