1.0.3 • Published 3 years ago
collect-api v1.0.3
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