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

@therealraluvy/memeinstall

v1.3.0

Published

A CLI module for downloading some memes as images and save to a specific directory

Downloads

22

Readme

Meme Installer

A CLI module for downloading memes as images to a specific directory

memeinstall [-c <count>] --directory=<folder name>

Installation

The module can be install via npm

npm i -g @therealraluvy/memeinstall

If you want to use this for script-only, you can remove the option -g. You can check it out in Script tag

npm i @therealraluvy/memeinstall

Options

-c <count> | Count of memes to download. The default is 10 and the max almont of memes is 50 --no-gif=<boolean> | Refuse to download GIF meme. Default is false. --directory=<folder name> | Which folder do you want to download. The default is the current directory. --debug | Enable debug mode. Default is false

Examples

Without options will install memes in current directory

memeinstall

This will install 10 memes to a folder called memes

memeinstall --directory=memes

This will install 50 memes to a folder called memes

memeinstall -c 50 --directory=memes

Script

Script support is added in v1.3.0. It is similar to CLI, works on Node.js. TypeScript is not supported, but hopefuly will support later Here's quick example

const memeinstall = require("@therealraluvy/memeinstall")
memeinstall.install()

Advanced example

memeinstall.install("memes", 50, true)
    .then(() => {
        console.log("Finished downloading!")
    })
    .catch(err => console.error(err))

It's possible to get a meme without downloading using getMeme

memeinstall.getMeme(25)
    .then(json => console.log(json))

Requirements

Node.js >= 10.0.0 Have at least 15 or more MB disk stoarge for 50 memes

Change Log

v1.3.0

Fixed --no-gif ignoring the check if the file is added Added Script category

v1.1.0

Added an optional --no-gif. Useful when you want to get memes without GIF.

v1.0.0-1.0.4

Published to NPM. Nothing changes