Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

broothie/kase

Open more actions menu

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

kase

Convert from one case to another. Input case is determined on a best-guess basis, but can be overridden with the --from flag.

Installation

cargo install kase

Usage

Example

$ kase snake MyVariable
my_variable

$ kase screaming-snake my_variable
MY_VARIABLE

$ kase kebab MY_VARIABLE
my-variable

$ kase path my-variable
my/variable

$ kase dot my/variable
my.variable

$ kase camel my.variable
myVariable

$ kase pascal myVariable
MyVariable

$ # If the best-guess for an input isn't right for your use case, you can use the `--from` flag:
$ kase dot my_dir/my_path
my.dir/my.path

$ kase --from path dot my_dir/my_path
my_dir.my_path

Options

$ kase -h
Convert from one case to another. Input case is determined on a best-guess basis, but can be overridden with the --from flag.

Usage: kase [OPTIONS] <CASE> [INPUT]

Arguments:
  <CASE>   Case to convert to [possible values: snake, screaming-snake, kebab, path, dot, camel, pascal, lower]
  [INPUT]  String to convert; if empty, reads from stdin

Options:
  -f, --from <FROM>  Case to convert from, if best-guess isn't working [possible values: snake, screaming-snake, kebab, path, dot, camel, pascal, lower]
      --debug        Debug mode
  -h, --help         Print help information
  -V, --version      Print version information

Used by

Contributors

Languages

Morty Proxy This is a proxified and sanitized view of the page, visit original site.