GoTo means irajs

Logo

Ira Fetch - Vanilla JS Fetch API wrapper with goodies πŸ’

View the Project on GitHub D3Portillo/ira

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

See Full API Reference ↗️