Skip to content

API Reference


API Reference / @dasch-ng/web-utils / SlugOptions

Interface: SlugOptions ​

Defined in: slug.ts:1

Properties ​

expandUmlauts? ​

optional expandUmlauts?: boolean

Defined in: slug.ts:7

Write German umlauts and ß out (ü → ue) instead of dropping the accent. Default true.


fallback? ​

optional fallback?: string

Defined in: slug.ts:5

Used when the value has no Latin letters or digits, reduced the same way. Default ''.


maxLength? ​

optional maxLength?: number

Defined in: slug.ts:3

Maximum length; longer slugs are cut at a word boundary. Default 80.

Released under the MIT License.