Convert kebab-case strings to CONSTANT_CASE from the command line. Zero dependencies.
npm i -g @kszongic/kebab2constant-cli# Convert arguments
kebab2constant hello-world
# HELLO_WORLD
kebab2constant my-var-name foo-bar
# MY_VAR_NAME
# FOO_BAR
# Pipe from stdin
echo "some-value" | kebab2constant
# SOME_VALUE
cat names.txt | kebab2constant| Flag | Description |
|---|---|
-h, --help |
Show help |
-v, --version |
Show version |
MIT © 2026 kszongic