Skip to content

Change case of text using the command line: upper-case, lower-case, title-case, camel-case, kebab-case, snake-case

Notifications You must be signed in to change notification settings

SixArm/change-case

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Change case

Change the case of text on the command line.

Contents:

Commands

Commands in this repo:

Examples

Examples of each command:

$ echo "foo BAR" | upper-case
FOO BAR
$ echo "foo BAR" | lower-case
foo bar
$ echo "foo BAR" | title-case
Foo Bar
$ echo "foo-goo-hoo" | camel-case
fooGooHoo
$ echo "foo-goo-hoo" | pascal-case
FooBarHoo
$ echo "fooGooHoo" | kebab-case
foo-goo-hoo
$ echo "fooGooHoo" | snake-case
foo_goo_hoo
$ echo "Can't Stop Won't Stop" | slug-case
cant-stop-wont-stop
$ echo "Can't Stop Won't Stop" | word-case
Cant_Stop_Wont_Stop

Implementation

These scripts use perl because we want these scripts to work on a wide range of systems, including older systems.

These scripts are intended to be simple.

These scripts are not intended to handle examples such as a title using upper-case content words along with lower-case short words.

Tracking

About

Change case of text using the command line: upper-case, lower-case, title-case, camel-case, kebab-case, snake-case

Resources

Code of conduct

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages