window.kaolin
    Preparing search index...

    Function downloadTextFile

    • Trigger a browser download of in-memory text as a file. Convenience wrapper around downloadBlob that builds the blob from a string.

      Parameters

      • filename: string

        Suggested name for the downloaded file (e.g. 'data.json').

      • content: string

        The text to save.

      • mimeType: string = 'text/plain'

        MIME type for the blob; defaults to 'text/plain'.

      Returns void