Skip to content

losparviero/redgif

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

Usage

import { getGif } from "redgif"

Install

npm i redgif

Methods

getGif() Generates downloaded gif returned as buffer

Params: [gifId]

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.

License

AGPL-3.0 ©️ Zubin

About

Download gifs from Redgifs programtically.

Resources

License

Stars

Watchers

Forks