myquotes
v1.0.2
Published
Get a quote, authoer for a quote or a category!
Downloads
4
Maintainers
Readme
Example Usage
Install myquotes
npm install myquotes
// TypeScript: import quote from "myquotes";
const quote = require("myquotes");
// Get a random quote's author
console.log(quote().author);
// Get a random quote
console.log(quote().quote);
// Get a love quote
console.log(quote("Love").quote);
// Get a random author, quote and category
console.log(`
${quote().author}
${quote().quote}
${quote().category}
`);
Testing
npm test