0.0.2 • Published 5 years ago
studly-caps v0.0.2
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