> For the complete documentation index, see [llms.txt](https://jscula.gitbook.io/docs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://jscula.gitbook.io/docs/utils/case-conversions/kebabtosnake.md).

# kebabToSnake

Converts a `kebab-case` string to a `snake_case` string.

**Parameters**

* `str` **{string}**: The `kebab-case` string to convert.

**Returns**

* **{string}**: The converted `snake_case` string.

```javascript
const result = kebabToSnake('kebab-case-string');
console.log(result); // Output: Kebab_case_string
```
