# f-giphy-pfft-js-util

> Shared giphy js utils

Latest version **2.3.4** (published 2021-04-18) · MIT license · 0 weekly downloads

## Install

```sh
npm install f-giphy-pfft-js-util
pnpm add f-giphy-pfft-js-util
yarn add f-giphy-pfft-js-util
bun add f-giphy-pfft-js-util
```

## Health

**Score 25/100 (F)** — status: abandoned.

Positive: has types; no vulnerabilities; high quality score.

Warnings: low downloads; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 2.3.4 |
| Published | 2021-04-18 |
| First published | 2021-04-18 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 3 |
| Unpacked size | 71.5 KB |
| Known vulnerabilities | 0 (+20 in 2 direct dependencies) |
| Install scripts | no |
| Maintainers | braedonww |

## Links

- npm: https://www.npmjs.com/package/f-giphy-pfft-js-util
- npm.io page: https://npm.io/package/f-giphy-pfft-js-util

## Dependencies (3)

- [uuid](https://npm.io/package/uuid.md) ^8.3.0
- [dompurify](https://npm.io/package/dompurify.md) ^2.2.2
- [f-giphy-pfft-js-types](https://npm.io/package/f-giphy-pfft-js-types.md) ^3.1.4

## Recent versions

- 2.3.4 (latest) — 2021-04-18

## README

# 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

---
_Source: https://npm.io/package/f-giphy-pfft-js-util · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
