#converter #text #cli #case

app luciferous-case-converter

A CLI tool to convert text between different cases

2 releases (1 stable)

new 1.0.0 May 6, 2025
0.1.9 May 6, 2025

#160 in Text processing

MIT license

10KB
128 lines

Luciferous Case Converter

Luciferous Case Converter is a CLI tool built in Rust that transforms text between different case styles such as snake_case, camelCase, PascalCase, and more.

Features

  • Convert text to any of these formats:
    • snake_case
    • UPPER_SNAKE_CASE
    • camelCase
    • PascalCase
    • kebab-case
  • Accept input from command-line arguments or stdin (pipes)
  • Cross-platform compatibility (Windows, macOS, Linux)

Installation

From Source

  1. Clone the repository
  2. Build the project:
    cargo build --release
    
  3. The binary will be available at target/release/case-converter

Usage

Command-line Arguments

# Convert to snake_case
$ case-converter -c snake_case "ExampleText"
example_text

# Convert to kebab-case
$ case-converter --case kebab-case "ExampleText"
example-text

Piped Input

$ echo "ExampleText" | case-converter -c PascalCase
ExampleText

Version Information

$ case-converter -v
case-converter 0.1.9

Available Case Options

  • -c, --case <case>: Specify the target case (required unless using -v/--version)
    • snake_case (alias: snake)
    • UPPER_SNAKE_CASE (aliases: upper_snake, upper-snake)
    • camelCase (alias: camel)
    • PascalCase (alias: pascal)
    • kebab-case (alias: kebab)

Help

For more information, use the help option:

$ case-converter --help

Dependencies

~1–1.6MB
~30K SLoC