download-url
download-url is a download toolkit which support both http and https URL, to check and download file by given URL, also resolve a promise when it is done
Install
$ npm install --save download-url
Usage
Chain version
var _d = url _dstart'abc.mp4'
API
constructor
Giving download url as parameter, and start check up if it is work and downloadable.
var downloadAPI = ;
setPath("/upload/directary")
Giving destination directory as parameter, which needed to be created before storing the download file.
var downloadAPI = ;downloadAPI or
start()
It is a function which return a promise, to trigger download, from the given URL to the given Directary and process the url validate checkup before download.
var downloadAPI = ;downloadAPIdownloadAPIstart or
isDownloadable(url)
It is a function which return a promise, to check if the url parameter downloadable.
var API = API
License
MIT © Kevin Mårtensson