inspiro

0.0.3 • Public • Published

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:

  1. Fork the repository
  2. Create your feature branch (git checkout -b feature-name)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin feature-name)
  5. 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).

Readme

Keywords

Package Sidebar

Install

npm i inspiro

Weekly Downloads

1

Version

0.0.3

License

SEE LICENSE IN LICENSE

Unpacked Size

13.5 kB

Total Files

4

Last publish

Collaborators

  • lordofcosmos