Gun-Vue docs v0.21.4 • Docs
Gun-Vue docs v0.21.4 / File / downloadFile
Function: downloadFile()
downloadFile(
text
,fileType
,fileName
,isBlob
?):void
A method to download any text as a file
Parameters
• text: string
| Blob
the text to download
• fileType: string
the file type like "application/json"
• fileName: string
the full file name like "myKey.json"
• isBlob?: boolean
= true
Returns
void