Releases: chrishannah/textcase-cli
1.4
I'm sat by the pool, but wanted to write a bit of code, so I've moved across 5 simple counting formats from the Text Case app.
New formats:
- countCharacters -Count number of characters.
- countCharactersExclWhitespace - Count number of characters, excluding any whitespace characters.
- countWords - Count number of words.
- countLines - Count number of lines.
- countLinesExclBlanks - Count number of lines, excluding any blank lines.
1.3
Text Case CLI now supports title formatting!
And just like the apps, it's not just the one format, there's support for 9 various title styles:
- amaTitle - Format text as a title using AMA style.
- apTitle - Format text as a title using AP style.
- apaTitle - Format text as a title using APA style.
- bluebookTitle - Format text as a title using Bluebook style.
- cmosTitle - Format text as a title using Chigaco Manual of Style.
- guardianTitle - Format text as a title using The Guardian style.
- mlaTitle - Format text as a title using MLA style.
- nytTitle - Format text as a title using New York Times style.
- wikipediaTitle - Format text as a title using Wikipedia's style.
1.2
Text Case is now built on Apple's Swift Argument Parser, meaning the way you interact with the textcase
command is slightly different.
For starters, textcase
now has two sub commands: format
and list-formats
. Although the default sub command is format
, so that's not explicitly required.
So to view a list of formats, you now need to use textcase list-formats
.
As for the formatting, here are the various options:
USAGE: text-case format --format <format> [--input <input>] [--input-file <file>] [--output-file <file>]
OPTIONS:
-f, --format <format> Format to be used.
-i, --input <input> Text to be formatted.
--input-file <file> Path of file to be used as input.
--output-file <file> Path of file to be used as output.
--version Show the version.
-h, --help Show help information.
And, of course, you can use textcase --help
, textcase format --help
, or textcase list-formats --help
for more information.
1.1
This release builds on the initial version, and adds a number of new formats:
- camelCase - Capitalise the first letter of each word, except the first, and join together.
- pascalCase - Capitalise the first letter of each word, and join together.
- snakeCase - Make all letters lowercase and join with an underscore.
- kebabCase - Make all letters lowercase and join with a hyphen.
- base64Encode - Encode text as Base64.
- base64Decode - Decode Base64 encoded text.
- boldSerif - Bold serif style characters.
- boldSansSerif - Bold sans-serif style characters.
- italic - Italic style characters.
- italicBoldSerif - Italic bold serif style characters.
- italicBoldSansSerif - Italic bold sans-serif style characters.
- gothic - Gothic style characters.
- strikethrough - Strikethrough style characters.
- script - Script style characters.
- lettersInCirclesFilled - Characters inside filled circles.
- lettersInCirclesOutline - Characters inside outlined circles.
- lettersInSquaresFilled - Characters inside filled squares.
- lettersInSquaresOutline - Characters inside outlined squares.
1.0
First release of Text Case CLI.
This version supports 17 different text transformations:
- stripHTML - Strip all HTML tags.
- stripWhitespace - Remove all whitespace.
- trimWhitespace - Remove any preceeding or succeeding whitespace.
- clapCase - Put 👏 between every word.
- hashtags - Convert words into hashtags.
- rot13 - Reverse all characters.
- shuffled - Shuffle all characters.
- slug - Convert the text into a slug.
- smallCaps - Convert all characters into small capital characters.
- mockingSpongebob - Turn your words into something sarcastic Spongebob would say
- upsideDown - Flip all characters.
- capitalise - Capitalise the first letter.
- capitaliseWords - Capitalise all words.
- lowercase - Make all characters lowercase.
- reversed - Reverse all characters.
- uppercase - Make all characters uppercase.
- sentence - Capitalise text as a sentence.
You can pass input text via stdin, --input option, or via a file. The output is sent to stdout, but can also be sent to a file instead.