Translate words and phrases to a GIF and display it in the terminal.
Currently supported on iTerm2 >= 3.
$ npm install gif-term
const gifTerm = require('gif-term');
gifTerm('mind blown');
gifTerm('wait. whaaaat?', { clip: true, width: '100%' });
Logs the matching Gif to the terminal.
Returns an object with relevant gif data including the image string which you can use to log manually in the terminal.
Type: string
The text input that you want to translate into a gif. Works with emojis too! 🌈
Type: boolean
Default: false
Use stickers gifs instead of classic gifs.
Type: boolean
Default: false
Copy the gif url to your clipboard.
Type: string
number
Default: auto
Options: Npx
N%
N
auto
Set the width and height of the image.
- in pixels(
Npx
) - as a % of the terminal view(
N%
) - number of char cells(
N
) - autoscale based on the image dimensions(
auto
)
Note: The aspect ratio of the image will be preserved.
- gif-term-cli - CLI tool with interactive gif search feature
- Giphy API Docs - https://developers.giphy.com/docs
- iTerm2 Download- https://www.iterm2.com/downloads.html
MIT