0.6.0 • Published 4 years ago

fxtch v0.6.0

Weekly downloads
-
License
MIT
Repository
github
Last release
4 years ago

fxtch

A tiny (~1.2kb) wrapper around fetch for an easier API.

Install

npm install fxtch

Example

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')
0.1.0

4 years ago

0.3.0

4 years ago

0.2.0

4 years ago

0.5.0

4 years ago

0.4.0

4 years ago

0.6.0

4 years ago

0.0.0

4 years ago

1.0.0

4 years ago