slugify
slugify(
input,options?):string
Defined in: packages/core/src/string/slugify.ts:24
Lowercase ASCII slug of input: diacritics folded onto their base letters,
every other run of characters collapsed into separator, and no leading or
trailing separator.
The result is safe both as a URL path segment and as a file name on every
platform, since only a-z, 0-9 and separator survive.
Letters Unicode defines no decomposition for (Æ, Ø, Ł, and every
non-Latin script) have no ASCII base to fold onto and are dropped with the
rest — a name written entirely in such letters yields fallback.
Parameters
Section titled “Parameters”string
options?
Section titled “options?”Returns
Section titled “Returns”string