xqoutes
v1.0.4
Published
Generic Famous Qoutes and who said them
Downloads
3
Readme
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:
- General Business qoutes.
- General Life qoutes.
- Thankfuly: Qoutes from jamesFT at: https://github.com/JamesFT/Database-Quotes-JSON
- 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'
}