@rvoh/dream
    Preparing search index...

    Function snakeify

    • Converts a string or the keys of an object to snake_case.

      Examples: snakeify('HelloWorld-how-are---you') // 'hello_world_how_are_you' snakeify('Hello.World') // 'hello.world' snakeify('Hello/World') // 'hello/world' snakeify({ helloWorld: now }) // { hello_world: now }

      Type Parameters

      • const T
      • RT

      Parameters

      • target: T

        The string or object to snakeify

      Returns RT

      The snake_cased string or object