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 case -
Success!
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