studly-caps
v0.0.2
Published
Converts a given string to studly caps.
Downloads
4
Readme
Studly Caps
Transforms the case of given text into studly caps. Determination of whether a character should be uppercase vs lowercase is handled by a random generator (seedrandom
).
Usage
const studlyCaps = require('studly-caps');
// Converts an input string's text case into studly caps
console.log(studlyCaps('hello world'));
// => hELlo worlD
// Accepts a custom seed, defaults to Date.now()
console.log(studlyCaps('hello world', 1563820053356));
// => helLo WORlD