Download files with ease. (No dependencies!)
npm install simple-download
# or
yarn add simple-download
import download from 'simple-download'
const url = 'https://httpbin.org/image/png'
await download(url, '~/Desktop/my-image.png') //=> Promise<string | Buffer>
- Type:
string
- required:
true
- Type:
string
- required:
true
- Note: It must have the file name. (ex:
~/Desktop/my-image.png
)