js-file-download

Javascript function that triggers browser to save javascript-generated content to a file

MIT 13 个版本
安装
npm install js-file-download
yarn add js-file-download
pnpm add js-file-download
bun add js-file-download
README

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');
版本列表
0.4.12 2020-05-06
0.4.11 2020-03-31
0.4.10 2020-02-18
0.4.9 2019-12-11
0.4.8 2019-08-20
0.4.7 2019-05-24
0.4.6 2019-05-22
0.4.5 2019-03-21
0.4.4 2018-09-29
0.4.3 2018-09-27
0.4.2 2018-09-27
0.4.1 2017-09-14
0.4.0 2017-09-14