create-download-link
With this package, you can easily create links for downloading content as files. create-download-link returns a DOM element like the following:
TITLE
Specify the
- content of the file as a string,
- the filename to be used, and
- the title of the anchor element.
When the element is clicked, a file is downloaded and saved as FILENAME.
Usage
var createDownloadLink = ; var opt = data: 'Here is the content of the file' title: 'Click to download your file' filename: 'example.txt'; var anchor = ;