Skip to content

snakeCase

snakeCase(target)

Converts target string to snake_case format.

ts
snakeCase("hello world"); // "hello_world"
snakeCase("helloWorld"); // "hello_world"
ts
pipe("hello world", snakeCase()); // "hello_world"
pipe("helloWorld", snakeCase()); // "hello_world"