caser 1.1.1

Change text between PascalCase, camelCase, and snake_case
Documentation
  • Coverage
  • 0%
    0 out of 7 items documented0 out of 2 items with examples
  • Size
  • Source code size: 9.28 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 288.19 kB This is the summed size of all files generated by rustdoc for all configured targets
  • Ø build duration
  • this release: 9s Average build duration of successful builds.
  • all releases: 9s Average build duration of successful builds in releases after 2024-10-23.
  • Links
  • Homepage
  • KevinMGranger/caser
    0 0 0
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • KevinMGranger

caser

Change text between PascalCase, camelCase, and snake_case.

Can be used as a library or a command-line program.

CLI Usage

Usage: caser CASE term [terms]

Where CASE is one of pascal, camel, snake, or sentence.

For reference:

ThisIsPascalCase thisIsCamelCase this_is_snake_case This is sentence case. It starts with a capital after each sentence-ending punctuation mark.

Terms are converted and printed one per line.

Example: caser snake ConvertToSnakeCase would print convert_to_snake_case.

Library Usage

To use as a library, use one of the Case variants to convert a &str.

assert_eq!(caser::Case::SnakeCase.transform("PascalToSnake"), "pascal_to_snake")

Intent & See Also

This program is meant to be a simple get-the-job done utility.

If you need something more substantial, you might consider change-case or, heck, heck.