npm.io
0.4.12 • Published 6 years ago

js-file-download

Licence
MIT
Version
0.4.12
Deps
0
Size
4 kB
Vulns
0
Weekly
0
Stars
919

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');

Keywords