Global

Methods

(async) download(url, workingDir, options, logging) → {Promise.<void>}

Parameters:
Name Type Default Description
url string Target URL.
workingDir string Working directory.
options Object Any passed options overwrite the values in the config file.
logging Boolean false Whether to enable logging.
Source:
See:
Returns:
Type
Promise.<void>
Example
await download('https://www.youtube.com/watch?v=dQw4w9WgXcQ', '.', {
     '--config-location': './config.conf',
     '-j': true
 }, false);