Skip to content

Gun-Vue docs v0.21.4Docs


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

Defined in

src/files/useFile.js:16

MIT