Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/losparviero/redgif
Download gifs from Redgifs programtically.
https://github.com/losparviero/redgif
Last synced: 2 days ago
JSON representation
Download gifs from Redgifs programtically.
- Host: GitHub
- URL: https://github.com/losparviero/redgif
- Owner: losparviero
- License: agpl-3.0
- Created: 2023-09-01T17:42:54.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2023-11-06T18:56:17.000Z (about 1 year ago)
- Last Synced: 2024-10-28T15:57:33.243Z (18 days ago)
- Language: JavaScript
- Homepage: https://npmjs.com/package/redgif
- Size: 15.6 KB
- Stars: 0
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Redgif
Download gifs from Redgifs programtically.
For CLI usage, see [redgifs-dl](https://npmjs.com/redgifs-dl).
### Features
Zero dependencies.
Gets the highest quality.
If not, fallback to standard quality.
Much more stable than scraping methods.
### Usage
```js
import { getGif } from "redgif"
```### Install
```shell
npm i redgif
```### Methods
### getGif() Generates downloaded gif returned as buffer
#### 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.
### License
AGPL-3.0 ©️ Zubin