collect-api
v1.0.3
Published
This package is for fetching data from an api and it has a simple syntax
Readme
This package is for fetching data from an api and it has a simple syntax
An example : collect({ method: "GET", url: "data.txt", async: true, headers: [["x-auth-token", "soroosh"]], }).then(res=>{ console.log(res); }) .catch(err=> console.error(err))
Hope you like it
