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

memey

v1.0.10

Published

A Command Line meme generator.

Downloads

27

Readme

Memey

I got bored lmao.

Intro

Memey is a CLI meme generator using the ImgFlip API. It can be used to create memes on the fly.

Installation

As a command line utility, it is recommended that you install this using NPM to get the most use out of it. The instructions below assume that it is installed this way to provide access to the meme command.

npm i -g memey

If you instead choose to clone this repo instead of installing it as an npm package, you can still run npm i -g from inside the project folder to gain access to the meme command. Alternatively, you can also use any of the following commands as node index.js [args] or npm start [args].

Usage

When installed using NPM, Memey will add the "meme" command to the PATH, allowing you to access it anywhere using the command line.

In order to start using Memey, you first need to create an account on https://imgflip.com/. Please note that this utility is meant for personal use only and that your login credentials will be stored in a JSON file in plain text. When you first install the project, run meme login to proceed to the login steps.

Once you have logged in, you can start using Memey to create memes. In order to do so, you must run the meme command and pass it three options. This generates a url that automatically gets copied to your clipbwoard.

  • s - The search query. Memey will attempt to find a meme that matches the results.
  • t (optional)* - The Top text.
  • b (optional)* - The Bottom text.

*While the top and bottom texts are both optional, at least one must be provided.

Example

meme -s "dr evil" -t "quangdao can" -b "\"code\""

Memey comes with built-in shorthand for certain memes. These are typically the memes whose text are generally in a similar format. For example, the "all the things" meme typically has text that resembles something like, "Milk all the cows!". Memes like this can be generated by omitting the flags altogether and providing the text. Memey will automagically figure out how to interpret the text and generate the meme.

Example

meme "what if i told you this app was made out of boredom"

Maintenance

In order to reduce the strain on ImgFlip's servers, all meme data is stored locally in a JSON file. Therefore, it may not always be fully up-to-date. To fetch the latest meme data from ImgFlip, you can run meme update. Note that instead of overriding the locally stored memes with ImgFlip's data, the retrieved memes are merged into the existing meme JSON. This is done to keep existing memes, because ImgFlip only returns the 100 most popular ones.

Disclaimer

This application is not associated with ImgFlip or any of their affiliates. Should it be found that this application violates any terms or conditions of ImgFlip, please contact me and I will take it down.

meme -s "bad luck brian" -t "builds a cli app for imgflip" -b "gets banned"