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

yourmama

v1.1.0

Published

recieve random yomama jokes

Downloads

36

Readme

yourmama package

Node.js Package

My first really stupid npm package.

Promise based yomama joke getting package. Just in case you need to have access to mom-roasting things while working offline. I used Josh Buchea's wonderful repo as source of the yomama jokes. You can find my fork here, if you want to contribute to the file.

Why did I make this? I was really bored and searched for excuses to learn how to use Mocha.js and how to make packages. I only spent one hour on this.

Usage (dont)

Install the package first:

npm i yourmama
//import it
import * as yourmama from 'yourmama';

//getting random jokes
const randomJoke = yourmama.getRandom().then(roast=>{return roast})
//Omitting params on .getRoast() returns a random roast as well.
const randomJoke = yourmama.getRoast().then(roast=>{return roast})

//get a random joke in a topic
//topic can be: fat, short, stupid, ugly, nasty, hairy, bald, old, poor, skinny, tall and nice
const fatJoke = yourmama.getTopic("fat").then(roast=>{return roast})
//if you want to use .getRoast()
const fatJoke = yourmama.getRoast({topic:'fat'}).then(roast=>{return roast}) 
 
//get by ID, just makes a giant array and selects one of them
const specificJoke = yourmama.getID(0).then(roast=>{return roast})
//if you want to use .getRoast();
const speficicJoke = yourmama.getRoast({id:0}).then(roast=>{return roast})
//returns "Yo mama is so fat that her bellybutton gets home 15 minutes before she does." 
 
//get a specific one out of the topic array
const firstFatJoke = yourmama.getRoast({topic:'fat',id:0}).then(roast=>{return roast}) 
//returns "Yo mama is so fat that her bellybutton gets home 15 minutes before she does." 

Contributing

Fork and merge request the repo. You can do whatever to improve it.

If there are (somehow) any issues, let me know on the repository.

Changes

Version 1.1.0

Changed to ES6 syntax! You should probably update your stuff or stay on 1.0.6 if you don't want to use ES6.

Otherwise, nothing changed.

Version 1.0.6

Added a few more jokes and removed the unneeded submodule.

I can't really be bothered that much to implement the new way of requiring/importing modules at the moment.

Version 1.0.4

Added some JSDocumentation to help out Intellisense and fixed typos. Otherwise, it's the exact same as v1.0.3.

License

This project uses the MIT License, read more here