Ira Fetch: Vanilla JS Fetch API wrapper with goodies 🍒
Irajs is a small ~ 3kb function which enhances current Fetch API with more, more goodies. Ira code isn't chopped, replaced with random chars or similar on .min.js version, it's just minified.
Ira goodies include debug logs, persistent settings and custom currying to request functions with a set of options. The little wrapper tries to function using current JS Engine features, no babel or typescript used just plain vanilla Javascript.
npm install irajs
yarn add irajs
<script src="https://d3portillo.github.io/ira/src/index.min.js"></script>import ira from "irajs"
// Requires
const ira = require("irajs")
// Start playing around
ira.get("/stuff")observablehq.com/@d3portillo/ira-fetch-wrapper
<iframe height="518" style="width: 100%;" scrolling="no" title="Ira Fetch" src="https://codepen.io/D3Portillo/embed/poyjxwM?height=518&theme-id=light&default-tab=js,result" frameborder="no" loading="lazy" allowtransparency="true" allowfullscreen="true"> See the Pen Ira Fetch by Denny Portillo (@D3Portillo) on CodePen. </iframe>