inspiro
v0.0.3
Published
This module can create random quotes along with their authors.
Downloads
3
Readme
Inspiro
Inspiro is a Node.js library for generating random quotes along with their authors and categories.
Installation
You can install the package via npm:
npm install inspiro
Usage
After installing the package, you can use it in your Node.js project by requiring it:
const Inspiro = require('inspiro');
const inspiro = new Inspiro();
// Get a random quote
const randomQuote = inspiro.getRandomQuote();
console.log(randomQuote);
// Get a random quote by author
const randomQuoteByAuthor = inspiro.getRandomQuoteByAuthor('Winston Churchill');
console.log(randomQuoteByAuthor);
// Get a random quote by category
const randomQuoteByCategory = inspiro.getRandomQuoteByCategory('Success');
console.log(randomQuoteByCategory);
More documentation can be found here.
Contributing
Contributions are welcome! If you would like to contribute to this project, please follow the steps below:
- Fork the repository
- Create your feature branch (
git checkout -b feature-name
) - Commit your changes (
git commit -am 'Add some feature'
) - Push to the branch (
git push origin feature-name
) - Create a new Pull Request
By contributing to this project, you agree to license your contributions under the terms of the GNU General Public License v3.0 (GPL-3.0). You may review the full license here.
License
This project is licensed under the GNU General Public License v3.0 (GPL-3.0).