> 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/snaketokebab.md).

# snakeToKebab

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

**Parameters**

* `str` **{string}**: The `snake_case` string to convert.

**Returns**

* **{string}**: The converted `kebab-case` string.

```javascript
const result1 = snakeToKebab('snake_case_string');
console.log(result1); // Output: snake-case-string
```
