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

1.0.3 • Public • Published

quotable-ts

Wrapper for the quotable API

Import Library

import { QuotableApi } from 'quotable-ts';

Get Random Quote

const api = new QuotableApi();
console.log(await api.getRandomQuote());

All requests that can be performed

  • getRandomQuote()
  • getQuoteList()
  • getQuoteById()
  • searchQuote()
  • getAuthorList()
  • getAuthorById()
  • searchAuthors()
  • getAllTags()

Provide Parameter for Request

const api = new QuotableApi();
console.log(await api.getRandomQuote({
    author: 'Elbert Hubbard'
}));

To see what parameters you can give to the requests look at Documentation from lukePeavey

/quotable-ts/

    Package Sidebar

    Install

    npm i quotable-ts

    Weekly Downloads

    1

    Version

    1.0.3

    License

    ISC

    Unpacked Size

    51.4 kB

    Total Files

    27

    Last publish

    Collaborators

    • j4yy