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

gofetch

v0.0.3

Published

A Command Line Interface to automatically download images, gif or video.

Downloads

4

Readme

Gofetch

Dog food your hard drive in few types. Fetch images periodically from flickr and giphy.

You can let it run and feed a database with images.

This is mainly a devtool that should go on your Tool Belt.

  • [x] fetch images
  • [x] fetch gif
  • [ ] fetch video

🌍 Installation

npm install -g gofetch

👋 Usage

$ gofetch

🐈 Fetch kitten images every second and save them to tmp:

$gofetch fetch kitten

🍌 Fetch bananas gif every second and save them to tmp:

$gofetch fetch bananas gif

Stoping bananas fetching:

$gofetch stop bananas

Getting help

gofetch$ help

  Commands:

  Commands:

    help [command...]                                                 Provides help for a given command.
    exit                                                              Exits application.
    fetch [keyword] [type] [interval] [width] [height] [destination]  Starts downloading media to a given <destination> folder.
                                                                      You can provide the [type] of media you want to download (image or gif). The default value is 'image'
                                                                      One medium is downloaded every [interval] seconds (minimum is 1).
                                                                      You can provide a [keyword] to download media matching a specific subject. If not supplying any keyword, you will get media matching the keyword "kitten".
                                                                      You can provide [width] and [height] to change the images size, default size is 320x240 (This only works for images).
                                                                      
    stop <fetchName>                                                  Stop fetching specific named fetcher.
    list                                                              List current fetcher.

⚙ Configuration

You can use a configuration which looks like:

{
  "tmpDir": "/tmp",
  "destinationPath": "/tmp/fetch-image",
  "verbose": false,
  "image":{
    "width":320,
    "height":240,
    "type": "image"
  },
  "keyword":"kitten"
}

📦 Dependencies

  • vorpal: allow to display an interactive cli
  • request: allow to download the images
  • standard-settings: allow for loading settings, and default settings
  • fs-extra: allow to manipulate the file system
  • mkdirp: allow to create a directory

🕳 Troubleshooting

Please add some relevant information to help troubleshoot.

❤️ Contribute

Please follow standard style conventions.

Enjoy !