Documentation
    Preparing search index...

    Transforms string keys into snake_case format. Implements (BasaltKeyTransformer).

    Implements

    Index

    Constructors

    Methods

    Constructors

    Methods

    • Transforms a single key from any case to snake_case.

      Parameters

      • key: string

        The key string to transform into snake_case.

      Returns string

      The key string transformed into snake_case, with underscores between words.

      transformKey('myKeyName');
      Returns "my_key_name"
      transformKey('MyKeyName');
      Returns "my_key_name"
      transformKey('My-Key-Name');
      Returns "my_key_name"