Home >Web Front-end >JS Tutorial >Derpify.js – a tool for these trying times…
Introducing Derpify.js: a lightweight npm package (just three lines of code!) for adding a touch of random capitalization to your strings. Need to playfully scramble the case of text? Derpify.js is your solution.
Here's how it works:
<code class="language-javascript">console.log(derpify('All he wanted to say was I love you all.'));</code>
Output:
ALL hE WANTed to SAY WAS I lOVe YoU AlL.
Find Derpify.js here:
The above is the detailed content of Derpify.js – a tool for these trying times…. For more information, please follow other related articles on the PHP Chinese website!