ncase 0.3.2

Enforce a case style
Documentation

ncase [ɪn'keɪs] — enforce a case style

Why?

So that I can

% for f in *.pdf; do
	mv "$f" "$(ncase -s `basename "$f" .pdf`).pdf"
done

Binary

Install

% cargo install ncase

Usage

Enforce a case style on a string and write it to the standard output

% ncase --pascal this is a test string
ThisIsATestString

By default, enforce tOGGLE cASE[^1]

% ncase this is a test string
tHIS iS a tEST sTRING

[^1]: rANdOm cASe if built with the rand feature.

Library

Install

Add the dependency to Cargo.toml

% cargo add ncase@0.3

Usage

See on docs.rs.