GitHub - unjs/ohmyfetch: A better fetch API. Works on node, browser and workers.
Install: Import: Spoiler We use conditional exports to detect Node.js and automatically use node-fetch polyfill! No changes required. $fetch Smartly parses JSON and native values using destr and fallback to text if it fails to parse. $fetch automatically stringifies request body (if an object is passed) and adds JSON Content-Type headers (for put, patch and post requests).
https://github.com/unjs/ohmyfetch