node package manager
Don’t reinvent the wheel. Reuse code within your team. Create a free org »

pounce

Pounce

Pounce is a kickass way to show GIFs in the Terminal. Here's what you need to do:

Install Pounce with:

npm install pounce

Pounce currently only has one command: show, and it accepts three parameters:

pounce.show("file.gif", scale, frame_interval);

file.gif is the file path to the GIF file, scale is a value from 0 to 1, where 1 is the image's actual size, and frame_interval is how long each frame is displayed.

So to throw it all together...

var pounce = require("pounce");
 
pounce.show("nyancat.gif", 1, 100);

Here's a quick preview of what that code outputs. It's a bit glitchy because my Mac hates me.