snakeToPascal

Converts a snake_case string to a PascalCase string.

Parameters

  • str {string}: The snake_case string to convert.

Returns

  • {string}: The converted PascalCase string.

const result = snakeToKebab('snake_case_string');
console.log(result); // Output: SnakeCaseString

Last updated