0.8.0 • Published 4 years ago

@benjics/nodefetch v0.8.0

Weekly downloads
-
License
MIT
Repository
github
Last release
4 years ago

npm.io npm.io npm.io npm.io

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));
0.8.0

4 years ago

0.5.0

4 years ago

0.7.0

4 years ago

0.6.0

4 years ago

0.4.0

4 years ago

0.3.0

4 years ago

0.2.0

4 years ago

0.1.0

4 years ago

1.0.1

4 years ago

1.0.0

4 years ago