Package Exports
- simple-downloader
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (simple-downloader) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
simple-downloader package
Installation
nmp i simple-downloader
Usage
const { download } = require('simple-downloader')
// OR
import { download } from 'simple-downloader'
await download (
['https://speed.hetzner.de/100MB.bin'], // URLs of the files to download (optional, default: [])
'./downloads', // directory path to save the files (optional, default: 'simple-downloader')
5000, // cooldown between each download (optional, default: 5000)
true // debug mode (optional, default: false)
)
That's all you need to know to use this package!