@salvobee/crypto-vault
    Preparing search index...

    Function downloadText

    • Trigger a download of textual content or return a buffer when DOM APIs are unavailable.

      Parameters

      • filename: string

        The suggested file name for the download.

      • text: string

        Text content to persist.

      Returns void | Uint8Array<ArrayBufferLike> | Blob | NodeBuffer

      The created Blob/Buffer in environments that support it, otherwise void.