studly-caps

0.0.2 • Public • Published

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

Package Sidebar

Install

npm i studly-caps

Weekly Downloads

3

Version

0.0.2

License

MIT

Unpacked Size

3.6 kB

Total Files

6

Last publish

Collaborators

  • davidyzhu