Skip to content

Latest commit

 

History

History
12 lines (7 loc) · 272 Bytes

README.md

File metadata and controls

12 lines (7 loc) · 272 Bytes

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