Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

quotes-factory

sharjeelfaiq16ISC1.3.4TypeScript support: included

quotes-factory is a versatile JavaScript package that provides a comprehensive set of quotes to let you choose the best one for your project.

quotes, quote, quotes-factory, quote-factory, quote-generator, quotes-generator

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.