Installing
# use pnpm
$ pnpm install use-downloads
# use npm
$ npm install use-downloads --save
# use yarn
$ yarn add use-downloads
Usage
General use
import { download } from 'use-downloads'
download('url', options)
- by require
const { download } = require('use-downloads')
download('url', options)
Use CDN resource
<!-- head -->
<script src="https://unpkg.com/use-downloads@1.2.0/dist/index.global.prod.js"></script>
Support & Issues
Please open an issue here.