Skip to main content

camelToSnake()

Given a camelCase string, returns a snake_case string.

Usage

import { camelToSnake } from 'string-factory';

camelToSnake(string);

Prop types

proptyperequireddefault
stringStringyesnull

Examples

camelToSnake(someFunctionName) // some_function_name
camelToSnake(anotherFunction123) // another_function123