2.0.4 • Published 3 years ago
@ivanhanak_com/async-ajax v2.0.4
A library providing easily usable functional wrappers for async/await
Changelog
See the whole Changelog.
Install
Using npm:
npm install @ivanhanak_com/async-ajax
Using yarn:
yarn add @ivanhanak_com/async-ajax
Import
import {httpGet, httpPost} from '@ivanhanak_com/async-ajax';
Usage
window.addEventListener("load", async (event) => {
const items = await httpGet("/api/getItems");
console.log(items);
});