Convert
dot.casestrings toCONSTANT_CASEfrom the command line. Zero dependencies.
npm i -g @kszongic/dot2constant-cli# Arguments
dot2constant foo.bar.baz
# FOO_BAR_BAZ
dot2constant my.config.value another.key
# MY_CONFIG_VALUE
# ANOTHER_KEY
# Pipe from stdin
echo "hello.world" | dot2constant
# HELLO_WORLD
cat strings.txt | dot2constant| Flag | Description |
|---|---|
-h, --help |
Show help |
-v, --version |
Show version |
MIT © 2026 kszongic