{"library":"fetchres","type":"library","category":null,"description":"fetchres provides response handler utilities for the Fetch API, simplifying common patterns like parsing JSON and handling errors. Version 1.7.2 is current; no recent releases. It does not bundle its own fetch or Promise polyfills, so users must supply them (e.g., for older browsers or Node.js). Key differentiator: it exposes custom error types (BadServerResponseError, InvalidJsonError) for fine-grained error handling versus the native Response object.","language":"javascript","status":"maintenance","version":"1.7.2","tags":["javascript"],"last_verified":"Sun Jun 07","install":[{"cmd":"npm install fetchres","imports":["import fetchres from 'fetchres';","const fetchres = require('fetchres');","import fetchres from 'fetchres'; const err = new fetchres.BadServerResponseError();"]},{"cmd":"yarn add fetchres","imports":[]},{"cmd":"pnpm add fetchres","imports":[]}],"homepage":null,"github":null,"docs":null,"changelog":null,"pypi":null,"npm":"fetchres","openapi_spec":null,"status_page":null,"smithery":null,"compatibility":null}