Skip to content

Instantly share code, notes, and snippets.

@taylorstine
Created March 11, 2017 12:38
Show Gist options
  • Save taylorstine/4dcd88f380faeaa37dbcba3c72822c27 to your computer and use it in GitHub Desktop.
Save taylorstine/4dcd88f380faeaa37dbcba3c72822c27 to your computer and use it in GitHub Desktop.
A basic image requester
//request is the module we'll be using to make network calls.
//https://github.com/request/request
import request from "request"
function requestImage(imageUrl) {
request(imageUrl, (err, response, body)=>{
const theImage = body;
///do something with the image
});
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment