fwk-downloader
v1.1.1
Published
Download files
Downloads
6
Readme
downloader
Download files
Install
npm install downloader
npx cap sync
API
downloadFileFromRest(...)
downloadFileFromRest(options: { url: string; credentials: object; fileName: string; mimeType: string; directory: Directory; }) => Promise<{ value: boolean; }>
| Param | Type |
| ------------- | ------------------------------------------------------------------------------------------------------------------------------------- |
| options
| { url: string; credentials: object; fileName: string; mimeType: string; directory: Directory; } |
Returns: Promise<{ value: boolean; }>
downloadFileFromResource(...)
downloadFileFromResource(options: { url: string; fileName: string; directory: Directory; }) => Promise<{ value: boolean; }>
| Param | Type |
| ------------- | ---------------------------------------------------------------------------------------------- |
| options
| { url: string; fileName: string; directory: Directory; } |
Returns: Promise<{ value: boolean; }>
Enums
Directory
| Members | Value |
| --------------- | ------------------------ |
| DOWNLOADS
| "DOWNLOADS" |
| PICTURES
| "PICTURES" |
| DOCUMENTS
| "DOCUMENTS" |