https://github.com/shamblesides/coolstory.js
Generate a random story title! Library available in Node or in a browser.
https://github.com/shamblesides/coolstory.js
book creative creator generate generator prompt random story title writing
Last synced: 5 months ago
JSON representation
Generate a random story title! Library available in Node or in a browser.
- Host: GitHub
- URL: https://github.com/shamblesides/coolstory.js
- Owner: shamblesides
- License: mit
- Created: 2017-05-12T02:54:20.000Z (about 9 years ago)
- Default Branch: master
- Last Pushed: 2018-06-04T22:39:14.000Z (about 8 years ago)
- Last Synced: 2026-01-24T05:43:04.341Z (5 months ago)
- Topics: book, creative, creator, generate, generator, prompt, random, story, title, writing
- Language: JavaScript
- Homepage: https://npm.runkit.com/coolstory.js
- Size: 54.7 KB
- Stars: 0
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
[](https://nodei.co/npm/coolstory.js/)
[](https://npm.runkit.com/coolstory.js)
# coolstory.js
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](https://github.com/rpnow/rpnow2), but
is now available for any project to use under the [MIT license](/LICENSE).
## Try it out!
You can try out coolstory.js in your browser at [npm.runkit.com/coolstory.js](https://npm.runkit.com/coolstory.js).
## Basic Usage
coolstory.js works in Node and in a browser.
### Browser
``` html
var amazingTitle = coolstory.title(); // "Doubting"
```
### Node
After installing it using npm: `npm install coolstory.js`
``` js
const coolstory = require('coolstory.js');
let reallyGoodTitle = coolstory.title(); // "It Was the Bat"
```
### Bower
``` bash
bower install --save coolstory.js
```
Include the file `coolstory.js` in your project.
## API
### coolstory.title()
Generate a story title.
``` js
coolstory.title();
```
### coolstory.title(maxLength)
Generate a story title whose length is less than or equal to `maxLength` characters. (including spaces)
``` js
coolstory.title(10);
```