Skip to content

snakeCase

Transform a string to snake_case.

Usage

js
import { snakeCase } from '@studiometa/js-toolkit/utils';

snakeCase('Some String Content'); // some_string_content

Params

  • string (string): The string to transform.

Return value

  • string: The transformed string.

MIT Licensed