got-img

0.1.0 • Public • Published

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

Package Sidebar

Install

npm i got-img

Weekly Downloads

0

Version

0.1.0

License

MIT

Unpacked Size

3.81 kB

Total Files

5

Last publish

Collaborators

  • jnoh