Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

got-img

jnoh3MIT0.1.0

Get an image from a url

image, img, fetch, download, get, got, http

readme

got-img

Get an image from a url

Install

npm install got-img

Usage

const gotImg = require('got-img');

(async () => {
  const imgData = await gotImg('http://obs.astro.ucla.edu/images/towercam.jpg');
  doSomething(imgData); //imgData is binary
})

License

MIT