A simple file downloader for JavaScript.
npm install --save download.js
Download text as file using the downloadText
function:
import { downloadText } from 'download.js'
downloadText('file.txt', 'Lorem ipsum dolor sit amet')
To download a blob, one may use the downloadBlob
function.