🚨 Shai-Hulud Strikes Again:834 Packages Compromised.Technical Analysis →
Socket
Book a DemoInstallSign in
Socket

downloader.js

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

downloader.js

Easy promise based client for downloading files from url using Node.js

latest
Source
npmnpm
Version
1.0.2
Version published
Maintainers
1
Created
Source

downloader

Easy promise based client for downloading files from url

Installing

$ npm install downloader.js

Example

const Downloader = require('downloader.js');
const file = new Downloader('/home/downloads/');
await file.download({downloadLink: 'https://coubsecure-s.akamaihd.net/get/b31/p/coub/simple/cw_video_for_sharing/7ed4e938910/f5591eba05f53cb2fe86e/1580282505_looped_1580282503.mp4'})
          .catch(console.error);

API

constructor(downloadDir) //process.cwd() by default

//requestOptions like headers, refferer etc. It can be important for some download links.

Keywords

download

FAQs

Package last updated on 29 Jan 2020

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts