vigour-xhr-json

Promised JSON XHR.

Usage no npm install needed!

<script type="module">
  import vigourXhrJson from 'https://cdn.skypack.dev/vigour-xhr-json';
</script>

README

xhr-json

Promised JSON XHR.

Installation

$ npm install xhr-json

or

$ component install nathan7/xhr-json

API

xhrJson(url, options)

xhrJson(options)

Fetches the given URL (with the given options), parses the response as JSON, and returns that (as a promise). See nathan7/xhr for the options object.

License

MIT