quotes-factory
TypeScript icon, indicating that this package has built-in type declarations

1.3.3 • Public • Published

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.

Package Sidebar

Install

npm i quotes-factory

Weekly Downloads

20

Version

1.3.3

License

ISC

Unpacked Size

1.1 MB

Total Files

33

Last publish

Collaborators

  • mrmalik610