truncateSlug

Function

truncate a slug, namespaced to an org and accounting for the 256 character limit of individual typekeywords.

  • truncateSlug(slug: string, orgKey: string, paddingEnd: number) : string

Parameters

Parameter Type Default Notes
slug Required string
orgKey Required string
paddingEnd Optional number 0

Returns

string

Function defined in common/src/items/_internal/slugs.ts:20