npm.io
3.0.0 • Published 4 years ago

random-shout

Licence
MIT
Version
3.0.0
Deps
1
Size
3 kB
Vulns
0
Weekly
0

js-standard-style

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!!!

License

MIT

Keywords