2.0.1 • Published 12 months ago

@totallynodavid/downloader v2.0.1

Weekly downloads
-
License
MIT
Repository
-
Last release
12 months ago

Media Downloader

A Node.js package to retrieve direct media URLs from Imgur, Reddit, Instagram, Facebook (video), Twitter, Pinterest, and TikTok.

Installation

npm install media_downloader

Usage

Basic usage:

const MediaDownloader = require('media_downloader');

MediaDownloader('https://imgur.com/gallery/example')
    .then(result => console.log(result))
    .catch(error => console.error(error));

Advanced usage:

MediaDownloader(url, specificHost, quality);
  • url (string): URL of the media to process.
  • specificHost (string, optional): Force a specific host module. Supported for all the hosts.
  • quality (string, optional): Media quality. Supported for Facebook videos: 'sd', 'hd'.

The package returns a Promise that resolves to:

{
    urls: string[],
    count: number
}

If you need help, please open an issue. Happy downloading!

2.0.1

12 months ago

2.0.0

12 months ago