{"library":"better-fetch","type":"library","category":null,"description":"A tiny ES6 fetch() wrapper that simplifies common patterns: automatically sends cookies, allows setting default headers globally, and accepts plain JS objects as request body (auto-converted to FormData). Current stable version is 1.1.2, though the package appears unmaintained since 2016. Compared to alternatives like ky or axios, better-fetch is minimal and stays close to the native fetch API. It is likely compatible with both browser and Node.js environments that support fetch (or with polyfills). The library ships no TypeScript definitions and has no dependencies.","language":"javascript","status":"maintenance","version":"1.1.2","tags":["javascript","es6","json","api","fetch"],"last_verified":"Sun Jun 07","install":[{"cmd":"npm install better-fetch","imports":["import fetch from 'better-fetch'","const fetch = require('better-fetch')","fetch.setDefaultHeaders({...})"]},{"cmd":"yarn add better-fetch","imports":[]},{"cmd":"pnpm add better-fetch","imports":[]}],"homepage":"https://github.com/Swizec/better-fetch#readme","github":"https://github.com/Swizec/better-fetch","docs":null,"changelog":null,"pypi":null,"npm":"better-fetch","openapi_spec":null,"status_page":null,"smithery":null,"compatibility":null}