A command line tool for converting between common programming naming conventions.
- Clone the respository
cd
into the repository directory- Build the binary with
swift build --configuration release
- Copy the binary from the build directory into your path:
cp -f .build/release/codename /usr/local/bin/codename
Convert between namings with the --new-convention
and --new-convention
options:
$ codename --new-convention --new-convention=camel "Hello World"
helloWorld
Currently supported naming conventions include camel
(e.g. "theQuickBrownFox"), kebab
(e.g. "the-quick-brown-fox"), natural
(e.g. "the quick brown fox"), and snake
(e.g. "the_quick_brown_fox").