quotes-factory
v1.3.4
Published
quotes-factory is a versatile JavaScript package that provides a comprehensive set of quotes to let you choose the best one for your project.
Downloads
17
Maintainers
Readme
quotes-factory: Quotes Overloaded Library for JavaScript Developers
quotes-factory is a versatile JavaScript package that provides a comprehensive set of quotes to let you choose the best one for your project.
DOCUMENTATION https://t.ly/AgtrR
Installation
Install quotes-factory using npm, pnpm or yarn:
npm install quotes-factory --save-dev
pnpm install quotes-factory -D
yarn add quotes-factory -D
Usage
Import the quotes-factory library:
// ES5 Import
const getQuotes = require("quotes-factory");
// ES6 Import
import getQuotes from "quotes-factory";
Available Function
quotes-factory offers a wide range of random quotes. Here's how to access them:
- getQuotes(): Always provides you with a new random quote that you're definitely going to love.
Get complete quote object
const statement = getQuotes().statement;
const author = getQuotes().author;
const quote = `${statement}\n${author}`;
console.log(quote);
// I didn’t fail the test. I just found 100 ways to do it wrong.
// Mark Twain
Explore rest of the quotes by installing and utilizing this amazing libraray.
Supoort
Feel free to contribute and make quotes-factory a better choice.