A Directus slugify operation for Flows. It automatically handles most major languages, including German (umlauts), Vietnamese, Arabic, Russian, and more.
npm install directus-operation-slugify
yarn add directus-operation-slugify
pnpm add directus-operation-slugify
The separator to use between words. Defaults to -
.
Convert all string lowercase. Defaults to true
.
Convert camelcase to separate words (e.g. loremIpsum
-> lorem ipsum
). Defaults to true
Replace specific characters or words with alternatives (.e.g &
-> and
). Adding a leading and trailing space to the replacement will have it separated by dashes. Defaults to '&'
-> ' and '
.
An object containing the slugified input.
{ "slug": "[slug]" }
If any bugs are found please report them as a Github Issue