npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

everyday-fun

v1.1.0

Published

A simple NPM package which can return everyday quotes, jokes, riddles and interesting facts.

Downloads

77

Readme

Everyday Fun - Hacktoberfest 2020

A simple NPM package which can return everyday quotes, jokes, riddles and interesting facts. Click here to view this package on NPM registry.

Everyone is encouraged to participate, regardless of your skill level as it is especially for first timers and beginners. Use this project as a motivation to enter the world of Open Source Softwares.

Installation

Make sure to download and install Node.js. Now, install the node js module using the following command:

npm i everyday-fun

Usage

const all = require("everyday-fun");

console.log(all.getRandomQuote());

console.log(all.getRandomJoke());

console.log(all.getRandomRiddle());
  • [ ] getRandomQuote() returns an object containing quote and author -
{
      "quote":"Don't cry because it's over, smile because it happened.",
      "author":"Dr. Seuss"
}
  • [ ] getRandomJoke() returns an object containing body and category -
{
      "body":"Paddy and Mick were standing at a road junction,they spotted a truck carrying aload of rolled up lawn turfPaddy says to Mick \"aye thats what i,m going to do when I win the lottery\"Mick says \"whats that then Paddy?\"Paddy replies \"send my grass away forcutting\".",
      "category":"Men"
}
  • [ ] getRandomRiddle() returns an object containing riddle and answer -
{
    "riddle": "Thirty white horses on a red hill, First they champ, Then they stamp, Then they stand still. ",
    "answer": "Teeth"
}

Want to contribute?

Please find issues here.

Expectation from you:

  • [ ] Some basic Git knowledge.

System requirements:

  • [ ] Make sure node version 10 or higher is installed on your system.

  • [ ] Make sure npm version 6.14.4 or higher is installed on your system.

How to Contribute

Note 1: If you've never made a pull request before, or participated in an open-source project, we recommend taking a look at this wonderful video tutorial. And if you want a more complete tutorial on using github, creating branches etc. , here's a detailed video series.Once you've got your feet wet, you're ready to come back and dive into Hacktoberfest fun!

Note 2: Super Important Only the pull requests created between October 1st, 2020 and October 31st, 2020 will be counted!

  1. Star this repository. :stuck_out_tongue:

  2. And then you have to fork (make a copy) of this repo to your Github account.

  3. Clone (download) your fork to your computer.

  4. Set your streams so you can sync your clone with the original repo (get the latest updates)

    • [ ] git remote add upstream https://github.com/NITJSR-OSS/EverydayFun

    • [ ] git pull upstream master

    • [ ] The above 2 commands will synchronize your forked version of the project with the actual repository.

  5. Create a branch with your name (for e.g: if your name is Bruce Wayne, create a branch named Bruce_Wayne).

  6. Make the changes in your branch.

  7. Commit and push the code to YOUR fork.

  8. Create a pull request to have the changes merged into the origin.