Git Product home page Git Product logo

coolstory.js's Introduction

NPM

Try coolstory.js on RunKit

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, but is now available for any project to use under the MIT license.

Try it out!

You can try out coolstory.js in your browser at npm.runkit.com/coolstory.js.

Basic Usage

coolstory.js works in Node and in a browser.

Browser

<script src="https://unpkg.com/coolstory.js"></script>
<script>
    var amazingTitle = coolstory.title(); // "Doubting"
</script>

Node

After installing it using npm: npm install coolstory.js

const coolstory = require('coolstory.js');
let reallyGoodTitle = coolstory.title(); // "It Was the Bat"

Bower

bower install --save coolstory.js

Include the file coolstory.js in your project.

API

coolstory.title()

Generate a story title.

coolstory.title();

coolstory.title(maxLength)

Generate a story title whose length is less than or equal to maxLength characters. (including spaces)

coolstory.title(10);

coolstory.js's People

Contributors

shamblesides avatar

Watchers

James Cloos avatar  avatar

Forkers

ajonsickle

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.