1.0.4 • Published 3 years ago

xqoutes v1.0.4

Weekly downloads
-
License
MIT
Repository
-
Last release
3 years ago

Abdulrahman & Father (Shangabs)

Description

This Module is used to generate a random qoute that can be used in websites to get a qoute every time a use refrshes the page. It has four types if qoutes:

  1. General Business qoutes.
  2. General Life qoutes.
  3. Thankfuly: Qoutes from jamesFT at: https://github.com/JamesFT/Database-Quotes-JSON
  4. Thankfuly: Qoutes from Nazrullah Azim at: https://gist.github.com/nasrulhazim/54b659e43b1035215cd0ba1d4577ee80

Installation

npm install xqoutes

Usage

const {
  getBusinessQoute,
  getJamesFTQoute,
  getLifeQoute,
  getNasrulhAzimQoute
} = require("xqoutes");

const oneqoute = getJamesFTQoute();
console.log("Qoute: ", oneqoute.qoute);
console.log("Author: ", oneqoute.by);

OR

var xqoutes = require("xqoutes");
console.log(xqoutes.getBusinessQoute());
console.log(xqoutes.getLifeQoute());
console.log(xqoutes.getJamesFTQoute());
console.log(xqoutes.getNasrulhAzimQoute());

The returned value from all four functions is a JSON object like the following:

{
  qoute: 'The only place where success comes before work is in the dictionary',
  by: 'Vidal Sassoon'
}
1.0.4

3 years ago

1.0.3

3 years ago

1.0.2

3 years ago

1.0.1

3 years ago

1.0.0

3 years ago