xflight

Handle inflight promise to avoid async duplication

Usage no npm install needed!

<script type="module">
  import xflight from 'https://cdn.skypack.dev/xflight';
</script>

README

xflight

const Xflight = require("xflight");
const xfl = new Xflight();
xfl.promise(url, () => {
  return fetch(url);
});