Skip to content

anonrose/jetch

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 

Repository files navigation

Jetch - fetch JSON


A slightly easier way to fetch json

Usage

$ npm install jetch --save
import jetch from 'jetch';

try {
  var json = await jetch('http://mydomain.com/endpoint.json');
} catch(failedResponse) {
  //do something with failedResponse
}
//do something with `json`

a failed response is any response that is not HTTP status code 200

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published