fetch-json icon indicating copy to clipboard operation
fetch-json copied to clipboard

🐶 A wrapper around Fetch just for JSON (with TypeScript declarations)

Results 3 fetch-json issues
Sort by recently updated
recently updated
newest added

I think `package.json` needs `peerDependencies`? ``` "peerDependencies": { "node-fetch": "~3.2" }, ``` I've been bitten by this since upgrading yarn to `berry` which I think isolates dependencies in workspaces.

bug

It would be convenient to turn on or off logging (especially for debugging) with something like: ```js fetchJson.enableLogger(); fetchJson.get(url).then(handleData); //call is logged fetchJson.get(url, { log: false }).then(handleData); //call is NOT...

enhancement

Hello, It would be nice to be able to pass a specific `fetch` function to wrap with `ofetch`, so that it could be used in peculiar environments such as [SvelteKit's...

enhancement