open-index/open-npm huggingface dataset:
npm package: @giphy/embed-sdk
Description: JavaScript SDK to use GIPHY Embeds.
Latest version: 1.0.1

# @giphy/video-sdk

An SDK to help you embed GIPHY Clips on your website!

### Get started
```typescript
import { GiphyVideo } from '@giphy/embed-sdk'
const clipUrl = 'https://giphy.com/clips/studiosoriginals-love-reaction-emotion-h48wFAB9JpSTSiXwHw'
const Video = new GiphyVideo({
    url: clipUrl,
})
Video.loadPlayer('giphy-iframe')

// Methods
// Video.play()
// Video.pause()
// Video.stop()
// Video.mute()
// Video.unmute()
// Video.seekTo(10)
```
npm package: @giphy/js-util
Description: Shared giphy js utils
Latest version: 5.2.0

# @giphy/js-util

More coming soon:

_getAltText_ - get the alt text we display for gifs

_bestfit_ - finds image rendition that best fits a given width and height

_getBestRendition_ - get the best rendition object based on a width and height (uses bestfit)

_getBestVideo_ - get the best video rendition object based on a width and height (uses bestfit)

_getBestRenditionUrl_ - get the best rendition url based on a width and height, also factors in webp availability and if you're using video (uses getBestRendition)

_getGifHeight_ - quick way to get the height for a gif based on a provided width

_getGifWidth_ - quick way to get the width for a gif based on a provided height

_getSpecificRendition_ - get a specific rendition but factor in webp, sticker and video

_collections_ (lodash replacements)

-   mapValues (map for objects)
-   take
-   forEach (forEach for objects)
-   without
-   pick