@lupoliemilio/my-fetch
v1.0.2
Published
## Table of contents * [General info](#what-does-it-do) * [Technologies](#technologies) * [Setup](#setup)
Downloads
2
Readme
My-Fetch
Table of contents
What does it do?
A Project around the concept of UMD. It's possible to fetch for Node and with backwards compatibility on older browsers using XMLHttpRequest.
Technologies
Project is created with:
- Javascript
- HTML5
- Node.js
Setup
To run this project, install by inserting this magic sentence into your terminal
npm i @lupoliemilio/my-fetch
How to use
you have to require the npm package you've just installed!
let myFetch = require("./umd");
myFetch.init({
address: "https://reqres.in/api/",
key: "1234"
});
Functions
- GET - Retrieve data from API.
- PUT - Replace data from API.
- PATCH - Modify data from API.
- REMOVE - Remove data from API.
- POST - Create data to API.