randomcased
v1.0.0
Published
Convert a string to use RANdOmcasE.
Downloads
3
Maintainers
Readme
Randomcased
Convert a string to use Randomcased.
Install
npm install randomcased
Usage
const randomCased = require("randomcased");
randomCased("abcdefghijklmnopqrstuvwxyz");
//=> 'AbCDeFghIjkLMnoPQrstuVwxyZ'
randomCased("abcdefghijklmnopqrstuvwxyz");
//=> 'ABcDEFGHijklmNOPQrstUvwXYz'
// Seeding
randomCased("abcdefghijklmnopqrstuvwxyz", 123456789);
//=> 'abcDefgHIjkLmnOpqRsTuvwXyz'
randomCased("abcdefghijklmnopqrstuvwxyz", 123456789);
//=> 'abcDefgHIjkLmnOpqRsTuvwXyz'
API
randomCased(string, seed?)
string
Type: string
The string to convert.
seed
Type: number
The seed to use.