Skip to content
Randomize the casing of text
TypeScript
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
src
.gitignore
.npmignore
LICENSE.md
README.md
package-lock.json
package.json
tsconfig.json

README.md

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
# Ourput: 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.

You can’t perform that action at this time.