• Stars
    star
    335
  • Rank 125,904 (Top 3 %)
  • Language
    JavaScript
  • License
    MIT License
  • Created about 7 years ago
  • Updated almost 2 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Replace NPM install's progress bar with a GIF!

npm-gif

npm package version Travis build status npm package downloads code style license

preview GIF

Replace NPM install's progress bar with a GIF!

NOTE: This package should be considered experimental.

Requirements

iTerm2 v2.9 or higher is required to display actual images. Otherwise an ASCII version of the images will be displayed.

Installation

npm install --global npm-gif

Bonus Points

Add this line to your ~/.bash_profile, ~/.bashrc, or ~/.zshrc file so that you can experience awesomeness with the npm install command:

alias npm=npm-gif

Configure

You can change the loading GIF by setting the NPM_GIF environment variable to a file path or URL.

How?

When npm-gif is first run, it checks to see if it was passed the install or i arguments indicating that the user wishes to install an npm package. If neither of those arguments were passed, it simply spawns a new process of npm, passing the supplied arguments and options to it. If we are dealing with an install, it pretends that we have already required the gauge package but really, using mock-require, we have required gauge-gif.js which is just progress-img pretending to be gauge. We then require your local version of npm using global-npm (which won't reload gauge) and then use its internal functions to run the install command, passing arguments and options to it.

Why?

When I first saw @sindresorhus's term-img package I was inspired to create giph and then progress-img. I then saw @vadimdemedes's gifi package and wondered if there was a way I could implement progress-img into npm.

In short, this was basically just an experiment for fun. :)

License

MIT. See the LICENSE file for more info.

More Repositories

1

md5-file

return an md5sum of a given file
JavaScript
212
star
2

moment-holiday

A Moment.js plugin for handling holidays. NO LONGER MAINTAINED (DEPRECATED)
JavaScript
83
star
3

gravityforms-repeater

A Gravity Forms add-on that allows specified groups of fields to be repeated by the user.
JavaScript
59
star
4

redirectmeto

A simple tool for redirecting you.
HTML
58
star
5

ansiescapes

ANSI escape codes for manipulating the terminal - A Python port of sindresorhus's ansi-escapes Node.js module
Python
22
star
6

bitbar-googlecal

A plugin for BitBar that shows your upcoming Google Calendar events.
JavaScript
21
star
7

serverpilot-shell

Shell wrapper for the serverpilot.io API https://serverpilot.io/
Shell
20
star
8

progress-img

Use images as progress bars in the terminal!
JavaScript
19
star
9

apache-module-manager

A CLI tool for enabling/disabling Apache modules
JavaScript
17
star
10

moment-weekdaysin

A Moment.js plugin for getting the weekdays of a month, year, or inbetween two dates. NO LONGER MAINTAINED (DEPRECATED)
JavaScript
16
star
11

loremflickr-node

A website that provides placeholder images for every case, web or print, on almost any subject, in any size.
HTML
13
star
12

gameranger-account-switcher

The GameRanger Account Switcher is a program that allows you to have multiple accounts in the game client program called GameRanger.
C#
12
star
13

bitbar-cli

A command line tool for managing your BitBar plugins.
JavaScript
12
star
14

replace-once

Make multiple replacements in a string without replacing ones that have already been replaced.
JavaScript
9
star
15

Adbuix

A Graphic User Interface (GUI) for the Android Debug Bridge (ADB) on the Linux Operating System. (No longer maintained)
8
star
16

bitbar-trello

A BitBar Plugin that displays your recent Trello notifications in your Mac OS X Menu Bar
Shell
7
star
17

giph

A small node module/command line interface tool that fetches a random GIF from Giphy.
JavaScript
6
star
18

filebokz

A tiny, dependency-free, highly customizable and configurable, easy to use file input with some pretty sweet features.
JavaScript
5
star
19

date-shortcode

A small and simple date shortcode library.
JavaScript
4
star
20

form-data-body

A tiny, dependency-free node module for generating a form's multipart/form-data body for a POST request.
JavaScript
4
star
21

lyrcper

A Twitter bot that posts randomly generated wallpapers with song lyrics.
JavaScript
4
star
22

rnd-song

A node module that returns a random song/album/artist via the Musixmatch API.
JavaScript
4
star
23

reather

A React Weather App Exercise
JavaScript
3
star
24

growfield

A tiny, dependency-free JavaScript module for making textarea elements grow with their content.
JavaScript
3
star
25

kloner

A tiny, dependency-free JavaScript module for cloning/repeating elements.
JavaScript
3
star
26

greeklish-file-replace

Search files for Greek characters and replace them with their greeklish equivalents.
JavaScript
3
star
27

BecASCII

I wanted to make something for my wife and I have no artistic skills so I decided to do something creative with my programming skills!
JavaScript
3
star
28

minitaur

The ultimate, dependency-free, easy to use, JavaScript plugin for creating and managing modals.
JavaScript
3
star
29

img-items

Finds individual items inside an image and gets their size/coordinates.
JavaScript
2
star
30

dotfiles

My dotfiles for macOS
Shell
2
star
31

migrate-acf-field-data-to-repeater

A WordPress plugin that migrates field metadata for ACF fields that have been moved inside of a repeater
PHP
2
star
32

hashjump

A tiny, dependency-free JavaScript module for handling anchor links and scrolling elements into view.
JavaScript
2
star
33

nodejs-s3-exif-to-mongodb

A small Node.js app that takes the XML response from an Amazon S3 bucket that is filled with images and stores the EXIF data from those images into a MongoDB collection.
JavaScript
2
star
34

php-img-items

Finds individual items inside an image and gets their size/coordinates.
PHP
2
star
35

stack-fanatic

A node module that uses Google's Puppeteer library to visit your Stack Overflow profile and check the progress of the badge you are currently tracking.
JavaScript
2
star
36

peekfield

A dependency-free, easy to use, JavaScript plugin for hiding and showing fields.
JavaScript
2
star
37

bitbar-xboxfeed

A plugin for BitBar that shows your Xbox Live friend's recent activity.
JavaScript
2
star
38

rnd-flickr

A node module that fetches a random image from Flickr!
JavaScript
2
star
39

lyric-paper

A node module that draws a random line of song lyrics onto a random image from Flickr.
JavaScript
1
star
40

kodie

Hi there, my name is Kodie Grantham
HTML
1
star
41

spontaneous-text

A node module that draws the provided text string onto the provided image in a random font, color, size, and position.
JavaScript
1
star
42

old.kodieg.com

(The old) http://kodieg.com - The personal website of Kodie Grantham
HTML
1
star
43

stack-fanatic-cli

A CLI tool for checking the progress of the badge you are tracking on your Stack Overflow profile.
JavaScript
1
star
44

kolorfield

A tiny, dependency-free, color input field helper that utilizes the native color picker.
JavaScript
1
star
45

kgos

The source for my personal website located at kodieg.com
JavaScript
1
star