download-image

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

Usage no npm install needed!

<script type="module">
  import downloadImage from 'https://cdn.skypack.dev/download-image';
</script>

README

download-image

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

Installation

npm install --save-dev download-image

Usage

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