kit
GitHub
npm
Preparing search index...
@knitkode/utils
slugify
slugify
Function slugify
slugify
(
text
:
string
,
separator
?:
string
)
:
string
Slugify a text
replaces the accented letters
replaces the punctuation with dashes
Parameters
text
:
string
separator
:
string
= "-"
Returns
string
Borrows
mathewbyrne's gist
Settings
Member Visibility
Protected
Inherited
External
Theme
OS
Light
Dark
GitHub
npm
kit
Loading...
Slugify a text