Generate a random story title! Produces masterpieces such as:
- The Breezy Winter
- Between the Worst Souls
- Entrusted by Azure Kings
- The Star Box
- Authority's Worst Bones
- His Skulls
- Old Spider Hand
- The Shade Beans
- How It Is
- Smile
This module was originally built as part of RPNow.net, but is now available for any project to use under the MIT license.
You can try out coolstory.js in your browser at npm.runkit.com/coolstory.js.
coolstory.js works in Node and in a browser.
<script src="https://unpkg.com/coolstory.js"></script>
<script>
var amazingTitle = coolstory.title(); // "Doubting"
</script>
After installing it using npm: npm install coolstory.js
const coolstory = require('coolstory.js');
let reallyGoodTitle = coolstory.title(); // "It Was the Bat"
bower install --save coolstory.js
Include the file coolstory.js
in your project.
Generate a story title.
coolstory.title();
Generate a story title whose length is less than or equal to maxLength
characters. (including spaces)
coolstory.title(10);