Redgif
Download gifs from Redgifs programtically.
For CLI usage, see
redgifs-dl.
### Features
Zero dependencies.
Gets the highest quality.
If not, fallback to standard quality.
Much more stable than scraping methods.
$3
``
js
import { getGif } from "redgif"
`
$3
`
shell
npm i redgif
`
$3
$3
#### Params: [gifId]
`
js
const buffer = await getGif(gifId)
fs.writeFileSync("redgif.mp4", buffer)
``
gifId refers to the ID extracted from the full URL.
Use the appropriate file extension to save, can be .jpg or .mp4 for example.
$3
AGPL-3.0 ©️ Zubin