Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 

Repository files navigation

@kszongic/camel2dot-cli

npm version license

Convert camelCase strings to dot.notation from the command line. Zero dependencies.

Install

npm install -g @kszongic/camel2dot-cli

Usage

# Pass as arguments
camel2dot myVariableName
# → my.variable.name

camel2dot getElementById parseJSON
# → get.element.by.id
# → parse.json

# Pipe from stdin
echo "helloWorld" | camel2dot
# → hello.world

cat identifiers.txt | camel2dot

Options

Flag Description
-h, --help Show usage information
-V, --version Show version number

Examples

Input Output
myVariableName my.variable.name
getElementById get.element.by.id
XMLHttpRequest xml.http.request
helloWorld hello.world
parseJSON parse.json

License

MIT © kszongic

About

No description or website provided.

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages