Convert snake_case strings to PascalCase from the command line. Zero dependencies.
npm install -g @kszongic/snake2pascal-cli# As arguments
snake2pascal hello_world
# HelloWorld
snake2pascal user_first_name another_example
# UserFirstName
# AnotherExample
# Via stdin
echo "my_variable_name" | snake2pascal
# MyVariableName
# Pipe multiple lines
printf "foo_bar\nbaz_qux\n" | snake2pascal
# FooBar
# BazQux| Flag | Description |
|---|---|
-h, --help |
Show help message |
-v, --version |
Show version number |
MIT © 2026 kszongic