Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/SixArm/change-case
Change case of text using the command line: upper-case, lower-case, title-case, camel-case, kebab-case, snake-case
https://github.com/SixArm/change-case
Last synced: 7 days ago
JSON representation
Change case of text using the command line: upper-case, lower-case, title-case, camel-case, kebab-case, snake-case
- Host: GitHub
- URL: https://github.com/SixArm/change-case
- Owner: SixArm
- Created: 2017-05-17T13:40:37.000Z (over 7 years ago)
- Default Branch: main
- Last Pushed: 2023-10-18T17:24:40.000Z (about 1 year ago)
- Last Synced: 2024-08-01T13:38:20.296Z (3 months ago)
- Language: Shell
- Homepage:
- Size: 14.6 KB
- Stars: 17
- Watchers: 4
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Code of conduct: CODE_OF_CONDUCT.md
- Codeowners: CODEOWNERS
Awesome Lists containing this project
README
# Change case
Change the case of text on the command line.
Contents:
- [Commands](#commands)
- [Examples](#examples)
- [Implementation](#implementation)
- [Tracking](#tracking)## Commands
Commands in this repo:
* [upper-case](bin/upper-case)
* [lower-case](bin/lower-case)
* [title-case](bin/title-case)
* [camel-case](bin/camel-case)
* [pascal-case](bin/pascal-case)
* [kebab-case](bin/kebab-case)
* [snake-case](bin/snake-case)
* [slug-case](bin/slug-case)
* [word-case](bin/word-case)## Examples
Examples of each command:
```sh
$ echo "foo BAR" | upper-case
FOO BAR
``````sh
$ echo "foo BAR" | lower-case
foo bar
``````sh
$ echo "foo BAR" | title-case
Foo Bar
``````sh
$ echo "foo-goo-hoo" | camel-case
fooGooHoo
``````sh
$ echo "foo-goo-hoo" | pascal-case
FooBarHoo
``````sh
$ echo "fooGooHoo" | kebab-case
foo-goo-hoo
``````sh
$ echo "fooGooHoo" | snake-case
foo_goo_hoo
``````sh
$ echo "Can't Stop Won't Stop" | slug-case
cant-stop-wont-stop
``````sh
$ echo "Can't Stop Won't Stop" | word-case
Cant_Stop_Wont_Stop
```
## ImplementationThese 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
* Package: change-case
* Website: http://sixarm.com/change-case
* Cloning: https://github.com/sixarm/change-case
* Version: 3.0.0
* Created: 2017-05-16
* Updated: 2023-10-17T05:56:08Z
* License: GPL-2.0 or GPL-3.0 or contact us for custom
* Contact: Joel Parker Henderson ([email protected])
* Tracker: 760a85cee2b838f3297f5a5b2bfd9996