@jonaswn/umd-test
v0.9.0
Published
I umd.js filen skal der tilføjes endnu et fallback til de 4 HTTP metoder, vi allerede har skrevet: myFetch.post(), myFetch.get(), myFetch.put() og myFetch.del().
Downloads
12
Readme
NodeJS fetch
Fetch Wrapper that can Fetch Promises in varius ways like brower, XMLHttpRequest or NodeJS
Includes methods: Post, Get, Delete, Put
Quick Start
npm install
Locate the test.js folder
In the Myfetch function shown below, Place the address you want to Fetch
Run the script
node test
in our caseSuccess!
Usage Examples
myFetch.init({
address: "https://pokeapi.co/api/v2/
",
key: "1234"
});
myFetch.get("pokemon/ditto/").then(result => console.log(result));
Result below
Contact & Support
JonasWN - Github
jonaswn - NPM
This is a school project but feel free to contact me for any questions!
Licence
Licence used - MIT