Skip to content

drew-y/randomcase

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Randomcase

Randomize the casing of any text. Can be used via CLI or Node.js API.

Installation

npm i -g rcase # Take out the -g if using for a node package.

CLI Usage

Basic:

rcase "How are we doing today?"
# Output: how aRE we doInG TodaY?

Via Stdin:

echo "How are we doing today?" | rcase
# Output: HOw ARE WE dOiNg ToDay?

Node.js API

import { randomcase } from "rcase";

const randomCasedText = randomcase("My randomized case text");

Use Cases

¯\(ツ)

Note: Randomization is done via Math.random(). Don't expect cryptographic grade randomization here.

About

Randomize the casing of text

Resources

License

Stars

Watchers

Forks

Packages

No packages published