Skip to content

Latest commit

 

History

History
56 lines (37 loc) · 1.72 KB

File metadata and controls

56 lines (37 loc) · 1.72 KB

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.

Version Size Downloads


Npm Install

npm install irajs

Yarn Install

yarn add irajs

CDN Load

<script src="https://d3portillo.github.io/ira/src/index.min.js"></script>

Usage

import ira from "irajs"
// Requires
const ira = require("irajs")
// Start playing around
ira.get("/stuff")

👋 First-try Playground

At Observable

observablehq.com/@d3portillo/ira-fetch-wrapper

Codepen

<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>

See Full API Reference ↗️