@giphy/js-util
TypeScript icon, indicating that this package has built-in type declarations

5.0.0 • Public • Published

@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

Readme

Keywords

none

Package Sidebar

Install

npm i @giphy/js-util

Weekly Downloads

50,621

Version

5.0.0

License

MIT

Unpacked Size

59.2 kB

Total Files

17

Last publish

Collaborators

  • giphy