Socket
Socket
Sign inDemoInstall

directus-operation-slugify

Package Overview
Dependencies
0
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    directus-operation-slugify

A Directus slugify operation for Flows


Version published
Weekly downloads
8
increased by100%
Maintainers
1
Install size
30.8 kB
Created
Weekly downloads
 

Readme

Source

directus-operation-slugify

A Directus slugify operation for Flows. It automatically handles most major languages, including German (umlauts), Vietnamese, Arabic, Russian, and more.

Install

NPM
npm install directus-operation-slugify
YARN
yarn add directus-operation-slugify
PNPM
pnpm add directus-operation-slugify

Options

Separator

The separator to use between words. Defaults to -.

Lowercase

Convert all string lowercase. Defaults to true.

Decamelize

Convert camelcase to separate words (e.g. loremIpsum -> lorem ipsum). Defaults to true

Custom Replacements

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 '.

Output

An object containing the slugified input.

{ "slug": "[slug]" }

Bugs

If any bugs are found please report them as a Github Issue

License

MIT

Keywords

FAQs

Last updated on 13 Mar 2024

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc