closure-fetch

A Closure Compiler compatible fetch implementation (does not support the full fetch API)

Usage no npm install needed!

<script type="module">
  import closureFetch from 'https://cdn.skypack.dev/closure-fetch';
</script>

README

Closure Fetch

A minimal fetch implementation that supports sending ArrayBuffer and plain strings. Retrieval only supports array buffers as response.

fetch('/myfile.zip').then(function (response) {
  response.arrayBuffer().then(function (buffer) {
  });
});