Preparing search index...
The search index is not available
@elara-services/downloader
@elara-services/downloader
Downloader
Class Downloader
Hierarchy
Downloader
Index
Constructors
constructor
Properties
#default
Directory?
Methods
#sleep
fetch
file
files
set
Default
Directory
Constructors
constructor
new
Downloader
(
defaultDirectory
?
)
:
Downloader
Parameters
Optional
defaultDirectory
:
string
Returns
Downloader
Properties
Private
Optional
#default
Directory
#default
Directory
?:
null
|
string
Methods
Private
#sleep
#sleep
(
ms
)
:
Promise
<
unknown
>
Parameters
ms
:
number
Returns
Promise
<
unknown
>
fetch
fetch
(
url
,
path
,
options
?
)
:
Promise
<
{
filename
:
string
;
}
>
Parameters
url
:
string
path
:
string
Optional
options
:
Options
Returns
Promise
<
{
filename
:
string
;
}
>
file
file
(
url
,
options
?
)
:
Promise
<
unknown
>
Parameters
url
:
string
Optional
options
:
Options
Returns
Promise
<
unknown
>
files
files
(
options
)
:
Promise
<
{
errors
:
Error
[]
;
success
:
string
[]
;
}
>
Parameters
options
:
(
Pick
<
RequestOptions
,
"headers"
|
"auth"
|
"agent"
|
"timeout"
|
"maxHeaderSize"
>
&
{
extractFilename
?:
boolean
;
maxRedirects
?:
number
;
name
?:
string
;
path
?:
string
;
}
&
{
url
:
string
;
}
)
[]
Returns
Promise
<
{
errors
:
Error
[]
;
success
:
string
[]
;
}
>
set
Default
Directory
set
Default
Directory
(
path
)
:
Downloader
Parameters
path
:
null
|
string
Returns
Downloader
Settings
Member Visibility
Protected
Private
Inherited
External
Theme
OS
Light
Dark
On This Page
constructor
#default
Directory
#sleep
fetch
file
files
set
Default
Directory
@elara-
services/downloader
Downloader
Options
Generated using
TypeDoc