Promise based HTTP client for the browser and Deno.
Getting Started
importapifrom'https://deno.land/x/api/index.ts'// For Ts// import api from 'https://deno.land/x/api/index.js' // For JSconsole.log(awaitapi.get('https://jsonplaceholder.typicode.com/todos/'))console.log(awaitapi.getone('https://jsonplaceholder.typicode.com/todos/',1))console.log(awaitapi.post('https://jsonplaceholder.typicode.com/todos/',{userId: 5,title: "excepturi a et neque qui expedita vel voluptate",completed: false}))console.log(awaitapi.delete('https://jsonplaceholder.typicode.com/todos/1'))console.log(awaitapi.put('https://jsonplaceholder.typicode.com/todos/1',{userId: 1,title: "one",completed: true}))
console.log(await api.post('https://jsonplaceholder.typicode.com/todos/',{
userId: 5,
title: "excepturi a et neque qui expedita vel voluptate",
completed: false
}))