Skip to content

Added support for `options` for `getQuote` method

Latest
Compare
Choose a tag to compare
@vinitshahdeo vinitshahdeo released this 02 Oct 00:18
· 12 commits to master since this release
93d26e8

With this release, getQuote method will start accepting options.

const Quote = require('inspirational-quotes');
console.log(Quote.getQuote({ author: false }); // return quote without author

By default, author info will be returned.

Default options: { author: true }

NOTE: This version supports the legacy getRandomQuote method that might be deprecated in further versions. Recommended to use getQuote method with options as { author: false }