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 }