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

https://github.com/saada/download-image.js

Library with simple API to download an image from a URL to a desired location
https://github.com/saada/download-image.js

Last synced: 9 days ago
JSON representation

Library with simple API to download an image from a URL to a desired location

Awesome Lists containing this project

README

          

# download-image
Library with simple API to download an image from a URL to a desired location

## Installation
```bash
npm install --save-dev download-image
```

## Usage
```js
let downloadImage = require('download-image')
downloadImage('http://lorempixel.com/g/400/200/', `./image.jpg`)
downloadImage('lorempixel.com/g/400/200/', `./image2.jpg`)
```