redgifs
TypeScript icon, indicating that this package has built-in type declarations

1.0.8 • Public • Published

Redgifs

The library retrieves redgifs video file url from each page. Putting a page’s url will result in the library returning a link to an .mp4 file

!IMPORTANT!

For using the library on Heroku you should to add the current buildpacks:

$ heroku buildpacks:add --index 1 https://github.com/heroku/heroku-buildpack-chromedriver
$ heroku buildpacks:add --index 2 https://github.com/heroku/heroku-buildpack-google-chrome

Installation

$ npm i redgifs

Usage

const Redgifs = require("redgifs");

const r = new Redgifs();

r.getRedgifsVideo("https://www.redgifs.com/watch/decisivebestbettong")
	.then((videoFileUrl) => console.log(videoFileUrl))
	.catch(console.log);

Tests

npm run test

Contributing

  1. Fork it!
  2. Create your feature branch: git checkout -b my-new-feature
  3. Commit your changes: git commit -am 'Add some feature'
  4. Push to the branch: git push origin my-new-feature
  5. Submit a pull request :D

Package Sidebar

Install

npm i redgifs

Weekly Downloads

3

Version

1.0.8

License

ISC

Unpacked Size

10.5 kB

Total Files

11

Last publish

Collaborators

  • antongoldobin