@benjics/nodefetch
v0.8.0
Published
```bash npm i @BenjiCS/node-fetch ```
Downloads
16
Readme
NodeJS Fetch
Fetch Wrapper that can Fetch Promises in varius ways like brower, XMLHttpRequest or NodeJS
Includes methods: Post, Get, Delete, Put
How to install
npm install @benjics/nodefetch
Locate the YOUR-FILE.js folder
In the nodeFetch function shown below, Place the address you want to Fetch
How to use
if (typeof exports === "object") {
var nodeFetch = require("@benjics/nodefetch");
}
nodeFetch.init({
address: "https://YOUR.API/LINK", // Here you set your link to your fetch address
key: "1234" // Here you set your key to your api If you have one
});
nodeFetch.get("1").then(result => console.log(result));