Javascript function that triggers browser to save javascript-generated content to a file
Package: js-file-download
Created by: kennethjiang
Last modified: Sun, 19 Jun 2022 05:34:33 GMT
Version: 0.4.12
License: MIT
Downloads: 2,097,269
Repository: https://github.com/kennethjiang/js-file-download
Install
npm install js-file-download
yarn add js-file-download
Javascript File Download
Javascript function to trigger browser to save data to file as if it was downloaded.
Installation
npm install js-file-download --save
Usage
var fileDownload = require('js-file-download');
fileDownload(data, 'filename.csv');