Skip to content

Instantly share code, notes, and snippets.

@BradCoffield
Last active November 16, 2019 19:01
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save BradCoffield/1dc077f61dfe66c9aa97d646cab55bc3 to your computer and use it in GitHub Desktop.
Save BradCoffield/1dc077f61dfe66c9aa97d646cab55bc3 to your computer and use it in GitHub Desktop.
fetch(url)
.then(resp => resp.json())
.then(function(result) {})
const fetch = require('node-fetch');
fetch('https://api.github.com/users/github')
.then(res => res.json())
.then(json => console.log(json));
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment