> ## Documentation Index
> Fetch the complete documentation index at: https://docs.metrics-man.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Snakecase

# \$snakeCase

The `$snakeCase` operator converts a string to snake\_case format.

## Input

* A single string value

## Output

* The input string converted to snake\_case format

## Examples

### Convert to Snake Case

```json theme={null}
{
  "$snakeCase": [
    "hello world test"
  ]
}
```

Result: `"hello_world_test"`

### Convert with Capital Letters

```json theme={null}
{
  "$snakeCase": [
    "ConvertThisToSnake"
  ]
}
```

Result: `"convert_this_to_snake"`

### Field Value

```json theme={null}
{
  "$snakeCase": [
    {
      "$input": "input_text"
    }
  ]
}
```

Result: The input\_text field converted to snake\_case format
