Convert dot.notation strings to camelCase from the command line. Zero dependencies.
npm install -g @kszongic/dot2camel-cli# Single string
$ dot2camel foo.bar.baz
fooBarBaz
# Multiple strings
$ dot2camel user.first.name config.db.host
userFirstName
configDbHost
# Pipe from stdin
$ echo "some.dotted.key" | dot2camel
someDottedKey
# Process a file
$ cat keys.txt | dot2camel- Converting config keys (e.g.
app.server.port→appServerPort) - Transforming database column references to JS variable names
- Batch-renaming dot-separated identifiers
| Flag | Description |
|---|---|
-h, --help |
Show help message |
-v, --version |
Show version number |
MIT © 2026 kszongic