@benjics/nodefetch

```bash npm i @BenjiCS/node-fetch ```

Usage no npm install needed!

<script type="module">
  import benjicsNodefetch from 'https://cdn.skypack.dev/@benjics/nodefetch';
</script>

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

  1. npm install @benjics/nodefetch

  2. Locate the YOUR-FILE.js folder

  3. 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));