1.0.1 • Published 3 years ago

poetic-brilliance v1.0.1

Weekly downloads
-
License
ISC
Repository
github
Last release
3 years ago
const {getInspired, getMotivated, inspireMe, motivateMe} = require("poetic-brilliance");
getInspired(asJSON = false); //returns a random poem as text, or optionally, as JSON.
getMotivated(asJSON = false); //returns a random motivational quote as text, or optionally, as JSON.
console.log(getMotivated());
// getMotivated() and getInspired() return the poem/quote, so you need to do all that hard work of printing it out yourself. Very sad...
inpireMe(); //same as getInspired(), but it does the hard work of printing to the console for you. Hooray!
motivateMe(); //same as getMotivated(), but it does the hard work of printing to the console for you. Hooray!
//Both of these conventient functions also take the optional asJSON parameter. What fun!