Skip to content

Instantly share code, notes, and snippets.

@raphaelpor
Last active November 27, 2016 00:48
Show Gist options
  • Save raphaelpor/6a7fcb7614f6997da58f3323ed462a01 to your computer and use it in GitHub Desktop.
Save raphaelpor/6a7fcb7614f6997da58f3323ed462a01 to your computer and use it in GitHub Desktop.
import fitch from 'fitch';
fitch.get('file.json')
.then(response => {
console.log(response.data);
})
.catch(err => {
console.log(err.message);
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment