2.3.4 • Published 3 years ago

f-giphy-pfft-js-util v2.3.4

Weekly downloads
-
License
MIT
Repository
-
Last release
3 years ago

f-giphy-pfft-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)

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