Documentation
    Preparing search index...

    Transforms string keys into kebab-case format. Implements (BasaltKeyTransformer).

    Implements

    Index

    Constructors

    Methods

    Constructors

    Methods

    • Transforms a single key from any case to kebab-case.

      Parameters

      • key: string

        The key string to transform into kebab-case.

      Returns string

      The key string transformed into kebab-case, with all letters in lower case and words separated by hyphens.

      transformKey('myKeyName');
      Returns "my-key-name"
      transformKey('MyKeyName');
      Returns "my-key-name"
      transformKey('my_long_key_name');
      Returns "my-long-key-name"