3.0.0-alpha-10 • Published 8 months ago
@fatcherjs/middleware-progress v3.0.0-alpha-10
@fatcherjs/middleware-progress
Install
NPM
>$ npm install @fatcherjs/middleware-progress
CDN
<script src="https://cdn.jsdelivr.net/npm/@fatcherjs/middleware-progress/dist/index.min.js"></script>
Usage
import { fatcher } from 'fatcher';
import { progress } from '@fatcherjs/middleware-progress';
fatcher('https://foo.bar', {
middlewares: [progress()],
});
Options
onDownloadProgress
import { fatcher } from 'fatcher';
import { progress } from '@fatcherjs/middleware-progress';
fatcher('https://foo.bar', {
middlewares: [progress()],
onDownloadProgress: (current, total) => {
// current received data length
// total data length
},
});
License
3.0.0-alpha-10
8 months ago
3.0.0-alpha-6
8 months ago
3.0.0-alpha-5
9 months ago
3.0.0-alpha-8
8 months ago
3.0.0-alpha-7
8 months ago
3.0.0-alpha-9
8 months ago
3.0.0-alpha-4
9 months ago
1.7.2
3 years ago
1.8.0
3 years ago
2.0.0
3 years ago
1.7.1
3 years ago
1.7.0
3 years ago
1.6.1
3 years ago
1.6.0
3 years ago
1.5.0
3 years ago
1.4.1
3 years ago
1.4.0
3 years ago
1.3.0
3 years ago
1.2.0
3 years ago
1.0.1
3 years ago
1.0.0
3 years ago