1.0.7 • Published 3 years ago
vegot v1.0.7
vegot
Promise-based, Lightweight, and Zero-Dependency Http Client
Installing
Using npm:
$ npm install vegotUsing yarn:
$ yarn add vegotImporting
const vegot = require("vegot").defaultor
import vegot from "vegot"Examples
Send a GET request
vegot("https://httpbin.org/anything").then((res) => {
console.log(res)
})Send a POST request
vegot("https://httpbin.org/anything", { method: "POST" }).then((res) => {
console.log(res)
})License
The package is licensed under the MIT License