{"library":"d2l-fetch","type":"library","category":null,"description":"d2l-fetch is a JavaScript library that provides a middleware layer for the standard `window.fetch` API. It enables developers to intercept and modify requests and responses before they reach the network or are returned to the caller. This allows for centralized handling of concerns like authentication, caching, logging, and error handling. The current stable version is 2.7.0. While the release cadence is not explicitly stated, the package appears to be actively maintained, with regular updates. Its key differentiator lies in its straightforward, chainable middleware pattern, offering a flexible way to extend `fetch` behavior without deep polyfilling or direct modification of `window.fetch` itself, making it suitable for environments where `fetch` is natively available.","language":"javascript","status":"active","version":"2.7.0","tags":["javascript"],"last_verified":"Wed May 27","install":[{"cmd":"npm install d2l-fetch","imports":["<script type=\"module\" src=\"../d2l-fetch/d2l-fetch.js\"></script>\n// d2lfetch is now available globally","import { d2lfetch } from 'd2l-fetch/src/index.js';","const myMiddleware = (request, next) => { /* ... */ return next(request); };"]},{"cmd":"yarn add d2l-fetch","imports":[]},{"cmd":"pnpm add d2l-fetch","imports":[]}],"homepage":null,"github":null,"docs":null,"changelog":null,"pypi":null,"npm":"https://www.npmjs.com/package/d2l-fetch","openapi_spec":null,"status_page":null,"smithery":null,"compatibility":{"summary":{"python_range":"18–22","success_rate":0,"avg_install_s":null,"avg_import_s":null,"wheel_type":null},"url":"https://checklist.day/v1/registry/d2l-fetch/compatibility"}}