Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

directus-operation-slugify

Package Overview
Dependencies
Maintainers
0
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

directus-operation-slugify

A Directus slugify operation for Flows

  • 0.2.2
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
3
Maintainers
0
Weekly downloads
 
Created
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

Package last updated on 12 Jul 2024

Did you know?

Socket

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
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc