1.0.7 • Published 1 year ago
vegot v1.0.7
vegot
Promise-based, Lightweight, and Zero-Dependency Http Client
Installing
Using npm:
$ npm install vegot
Using yarn:
$ yarn add vegot
Importing
const vegot = require("vegot").default
or
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