1.0.2 • Published 4 years ago

downloader.js v1.0.2

Weekly downloads
1
License
MIT
Repository
github
Last release
4 years ago

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
download({downloadLink, fileName}, requestOptions)

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

1.0.2

4 years ago

1.0.1

4 years ago

1.0.0

4 years ago