Minimal wrapper around fetch for an easier API.
npm i fxtch
await fxtch("https://example.com")
await fxtch
.post("https://example.com")
.set("Authorization", "Bearer <token>")
.send({ name: "Matheus" })
fxtch
.get("https://example.com")
.query({ limit: 50 })
.then(console.log)
const api = fxtch
.client()
.baseUrl('https://example.com/')
.set({ Authorization: 'blabla' })
await api.post('/users')
await api.post('/users')