3.0.0 • Published 2 years ago
random-shout v3.0.0
random-shout
Useless module for random shouting.
It takes a string, changes a random selection of words to UPPER CASE and adds a random number of exclamation marks.
Usage
import { randomShout } from 'random-shout'
const sentence = 'To be, or not to be, that is the question'
console.log(randomShout(sentence)) //=> To be, OR NOT to BE, THAT IS the QUESTION!!
console.log(randomShout(sentence)) //=> To BE, or NOT to be, that is THE QUESTION!!!!
console.log(randomShout(sentence)) //=> To be, or not to be, that is the question!!!