Module: utils/files/saveTextFile

Methods

(static) saveTextFile(text, name, type, encodingopt, encodingopt) → {Promise.<void>}

Opens the save dialog to save a given text as file.

Parameters:
Name Type Attributes Default Description
text string
name string
type string
encoding string <optional>
text/plain
encoding string <optional>
utf-8
Source:
Returns:
Type
Promise.<void>