1.0.3 • Published 2 years ago

quotable-ts v1.0.3

Weekly downloads
-
License
ISC
Repository
github
Last release
2 years ago

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

1.0.3

2 years ago

1.0.0

2 years ago