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
- Host: GitHub
- URL: https://github.com/saada/download-image.js
- Owner: saada
- License: mit
- Created: 2016-06-19T20:48:13.000Z (almost 10 years ago)
- Default Branch: master
- Last Pushed: 2016-06-19T21:08:45.000Z (almost 10 years ago)
- Last Synced: 2024-08-10T19:59:11.939Z (almost 2 years ago)
- Language: JavaScript
- Size: 3.91 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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`)
```