ncase

Crates.ioncase
lib.rsncase
version0.3.2
created_at2022-07-22 16:17:57.049861+00
updated_at2025-02-14 16:22:29.576382+00
descriptionEnforce a case style
homepage
repositoryhttps://codeberg.org/xmyst/ncase.git
max_upload_size
id630901
size47,997
Stas Miasnikoŭ (xmyst)

documentation

README

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 cASE1

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

Library

Install

Add the dependency to Cargo.toml

% cargo add ncase@0.3

Usage

See on docs.rs.

Footnotes

  1. rANdOm cASe if built with the rand feature.

Commit count: 0

cargo fmt