JSPM

  • Created
  • Published
  • Downloads 1181
  • Score
    100M100P100Q102161F
  • License ISC

Package Exports

  • fetch-json

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (fetch-json) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

fetch-json

Wrapper around fetch specific for JSON.

Example usage

var postJSON = require('fetch-json/post');
postJSON('/api/login', {
  body: {
    username: 'kahwee',
    password: '!password1'
  }
}).then(function(data) {
  console.log(data, 'done');
});