1.0.17 • Published 5 years ago

axios-stream v1.0.17

Weekly downloads
62
License
GPL-3.0
Repository
github
Last release
5 years ago

AxiosStream

Download stream files via axios

Logo

This library is only suitable for WEB projects that use axios as the HTTP request library

Please install axios first, and then use axios-stream

The problems it solves:

Using Axios and Blob objects to achieve file stream download

How to use:

1. Installation

npm install axios-stream or yarn add axios-stream

2. Reference

import AxiosStream from "axios-stream";

3. Call the method

const downFileName='today'
const extensionName='xlsx'
const axiosConfig={
  method: 'get',
  url: '/user/12345',
}
 
AxiosStream.download(downFileName, extensionName, axiosConfig);

Enter the path and file name you want to download

the file name must include the extension**

Thanks

This method originated from the Internet and was inspired by chennvwang

1.0.17

5 years ago

1.0.16

5 years ago

1.0.9

5 years ago

1.0.8

5 years ago

1.0.11

5 years ago

1.0.10

5 years ago

1.0.14

5 years ago

1.0.13

5 years ago

1.0.12

5 years ago

1.0.7

5 years ago

1.0.6

5 years ago

1.0.2

5 years ago

1.0.1

5 years ago

1.0.5

5 years ago

1.0.4

5 years ago

1.0.3

5 years ago

1.0.0

5 years ago