/caser

Primary LanguageRust

crates.io image

Usage

Allow converting selection to various casings.

echo "snake_case" | caser camel # -> snakeCase

For instance, foo_bar to FooBar

Known casings:

camel               fooBar
http                Foo-Bar
kebab               foo-bar
pascal              FooBar
sentence            Foo bar
snake               foo_bar
screaming           FOO_BAR
title               Foo Bar
train               Foo-Bar
ugly                Foo_Bar

Installation

cargo install caser-cli

This should add a caser command to your $PATH.

Kakoune

After installing caser you can add something like caser.kak to your Kakoune config.