New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

giphy-gif

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

giphy-gif

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

  • 1.1.3
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
1
decreased by-92.86%
Maintainers
1
Weekly downloads
 
Created
Source

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

  • Gif page (like https://giphy.com/gifs/life-gets-down-olAik8MhYOB9K)
  • Gif embedding page (like https://giphy.com/embed/olAik8MhYOB9K)
  • Gif media page (like https://media4.giphy.com/media/olAik8MhYOB9K/giphy.gif)

Keywords

FAQs

Package last updated on 01 May 2023

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc