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

2.0.0 • Public • Published

What is easy-quotes?

easy-quotes is a simple dependency-less quotes manager with typescript support that can get you quotes submitted by many people with varying options for how much control you want to have over the formatting and type.

Installation

To install, run npm install easy-quotes

Usage

const eq = require('easy-quotes')

const inspirationalQuote = eq.getQuote({ categories: ['Inspirational'] })

Options

easy-quotes have multiple simple options to change what type of quote you want and how it is formatted

  • categories - ['ALL' | 'Fun' | 'Inspirational' | 'Motivational' | 'Funny' | 'Exciting' | 'Rude'] (Defaults to ["ALL"])
  • length - number (Defaults to 20)
  • includesNSFW - boolean (Defaults to false)
  • forProffessionalUse - boolean (Defaults to false)
  • authorNameFormat - 'AllLong' | 'AllShort' | 'FirstLong MiddleShort LastLong' | 'FirstShort MiddleShort LastLong' (Defaults to 'AllLong')

Package Sidebar

Install

npm i easyquotes

Weekly Downloads

1

Version

2.0.0

License

ISC

Unpacked Size

28.4 kB

Total Files

31

Last publish

Collaborators

  • johnmacleod02