game-quests

1.0.3 • Public • Published

Game Quests

Game Quests is a simple Node.js package that provides random game questions for fun and entertainment. It can be used in games, icebreakers, or just for casual conversations.

Installation

To install the package, use npm:

npm install game-quests

Usage

Here is an example of how to use the package:

const express = require('express');
const app = express();
require('dotenv').config();

const port = process.env.PORT || 3220;

const quests = [
  'What is your name?',
  'If I was a worm, will you marry me?',
  'What is your favorite color?',
  'Where are you from?',
  'What is your love language?',
  'Why are you broke?',
  'Will you send me money?',
  'Why are you so boring?',
  'What is your favorite food?',
  'What will you do if I kill your mother?',
  'Truth or dare?',
  'Am I pretty?',
  'Rich and abusive or poor and kind?',
  'Yahoo money or salary money?',
  'Would you rather always be 10 minutes late or always be 20 minutes early?',
  'What is your favorite flavor of ice cream?',
  'If you could switch places with any famous person for a day, who would it be and what would you do?'
];

const testing = quests[Math.floor(Math.random() * quests.length)];
console.log(testing);

app.listen(port, () => {
  console.log(`Server is running at: ${port}`);
});

Environment Variables

This package uses the dotenv package to manage environment variables. Create a .env file in your project root and define the following variable:

PORT=3200

Dependencies

  • express: ^5.1.0
  • dotenv: ^16.5.0
  • palindrome-checks: ^1.0.1

Author

This package was created by Caroline.

License

This project is licensed under the ISC License.

Keywords

  • game
  • game-quests
  • sqi
  • questions

Package Sidebar

Install

npm i game-quests

Weekly Downloads

11

Version

1.0.3

License

ISC

Unpacked Size

3.45 kB

Total Files

5

Last publish

Collaborators

  • caroline01