in-exportfile

1.0.0 • Public • Published

Javascript File Download

文件下载

Installation

npm i in-exportfile

Usage

const exportFile = require('in-exportfile');
import Axios from axios;

function download(url: string, filename: string) {
  Axios.get(url, {
    responseType: 'blob',
  }).then(res => {
    exportFile.saveExcel(res.data, fileName);
    exportFile.saveCsv(res.data, fileName);
    exportFile.downLoadImg(res.data, fileName);
  });
}

exportFile.getImgURLs(url, fileName);

Readme

Keywords

Package Sidebar

Install

npm i in-exportfile

Weekly Downloads

1

Version

1.0.0

License

ISC

Unpacked Size

2.16 kB

Total Files

4

Last publish

Collaborators

  • yeliming