An open API service indexing awesome lists of open source software.

https://github.com/rawnly/simple-download

Download files
https://github.com/rawnly/simple-download

Last synced: 7 months ago
JSON representation

Download files

Awesome Lists containing this project

README

          

# Simple Download
> Download files with ease. (No dependencies!)

[![Wallaby.js](https://img.shields.io/badge/wallaby.js-powered-blue.svg?style=for-the-badge&logo=github)](https://wallabyjs.com/oss/)

## Install
```bash
npm install simple-download

# or

yarn add simple-download
```

## Usage
```ts
import download from 'simple-download'

const url = 'https://httpbin.org/image/png'

await download(url, '~/Desktop/my-image.png') //=> Promise
```

## API

### url
- Type: `string`
- required: `true`

### path
- Type: `string`
- required: `true`
- Note: It must have the file name. (ex: `~/Desktop/my-image.png`)