0.2.1 • Published 2 years ago

goldshire v0.2.1

Weekly downloads
-
License
MIT
Repository
github
Last release
2 years ago

Goldshire

Generate quotes from Warcraft universe!

Installation

npm i goldshire

Usage

Generate a quote

import { generateQuote } from 'goldshire';

// optional parameter of type number, default to 1, describe the amount of quotes to generate.
const quote = generateQuote(3);

This function will return an object:

{
  id: 1,
  text: 'quote content', // the actual quote
  from: 1 // id of the character who told the quote
}

Generate a character

import { generateCharacter } from 'goldshire';

// optional parameter of type number, default to 1, describe the amount of characters to generate.
const character = generateCharacter(3);

This function will return an object:

{
  character: {
    id: 1,
    name: "characters's name",
  },
  quotes: [
    {
      id: 1,
      text: 'a quote from this character'
    },
    // others quotes if any
  ]
}
0.2.1

2 years ago

0.2.0

2 years ago

0.1.2

2 years ago

0.1.1

2 years ago

0.0.3

2 years ago

0.0.2

2 years ago

0.0.1

2 years ago