1.1.3 • Published 1 year ago

giphy-gif v1.1.3

Weekly downloads
-
License
MIT
Repository
github
Last release
1 year ago

GiphyGif

This module gets a direct link to a Giphy gif that can be embedded or downloaded

Installation

# Via npm:
npm i giphy-gif
# Via yarn:
yarn add giphy-gif

Usage

import { GiphyGif } from 'giphy-gif';

const gif = GiphyGif.getDirectLink('https://giphy.com/gifs/life-gets-down-olAik8MhYOB9K');

console.info(gif);

/* Checks */

const isDirectImage1 = GiphyGif.isDirectImage('https://giphy.com/gifs/life-gets-down-olAik8MhYOB9K');

console.info(isDirectImage1); // false

const isDirectImage2 = GiphyGif.isDirectImage(gif);

console.info(isDirectImage2); // true

Supported urls

1.1.3

1 year ago

1.1.2

1 year ago

1.1.1

1 year ago

1.1.0

1 year ago

1.0.0

1 year ago