@alanscodelog/utils
    Preparing search index...

    Function browserSaveFile

    • Triggers a file download with the given name and contents.

      This is done by temporarily appending a link element to the document body, clicking it, then quickly removing it.

      Note: The download might be blocked or might prompt the user to allow multiple downloads after the first one if there is no user interaction with the page between each call.

      This means it can fail silently. Also we have no way of knowing if it worked or when/if the file downloaded.

      Parameters

      • name: string
      • contents: string
      • __namedParameters: FilePropertyBag = {}

      Returns void

      browser