random-shout
Version:
Useless module for random shouting
22 lines (14 loc) • 722 B
Markdown
[](https://github.com/feross/standard)
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.
```JavaScript
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!!!
```
[](LICENSE)