slugify

Function

Perform the following operations on a string to make it slug-friendly:

  1. trim it
  2. convert to lowercase
  3. remove any character not a-z, 0-9, or _
  4. dasherize it
  • slugify(value: ) :

Parameters

Parameter Type Default Notes
value Required

String to slugify

Returns


Function defined in packages/common/src/utils/slugify.ts:9