Skip to content

Latest commit

 

History

History
21 lines (16 loc) · 358 Bytes

readme.md

File metadata and controls

21 lines (16 loc) · 358 Bytes

Installation

npm install file-down --save

Usage

import downloadHelper from './DownloadHelper';
downloadHelper.downloadUrl(response.data);
let blob = new Blob([response.data], {type: 'application/vnd.ms-excel'});
let fileName = 'filename.csv';
downloadHelper.downFile(blob, fileName);