ohmyfetch is a better fetch API. Works on node, browser and workers.
import { $fetch } from 'ohmyfetch'
Import it and use it as you’d use regular fetch
. On top of that, you can use some of the extra convenience methods and options — such as easy response parsing, JSON body, Auto Retry, … — this package provides.