{"library":"fetch-class","type":"library","category":null,"description":"An ES6 class wrapper for the Fetch API, providing a simplified interface with convenience methods (get, post, put, patch, del) and event hooks (request:pre, request:post). Version 1.0.4 is stable but appears unmaintained since 2017. It extends native fetch with base URL prefixing, default options, callbacks, and query parameter handling. Unlike raw fetch or axios, it offers a class-based design with event triggers for extensibility. Suitable for legacy browser projects where a simple fetch wrapper is needed, but lacks modern TypeScript types and ESM-only support.","language":"javascript","status":"deprecated","version":"1.0.4","tags":["javascript","js","es6","fetch","ajax","request","api","class"],"last_verified":"Sun Jun 07","install":[{"cmd":"npm install fetch-class","imports":["import Fetch from 'fetch-class'","import Fetch from 'fetch-class';\nnew Fetch('https://api.example.com')","import Fetch from 'fetch-class';\nconst api = new Fetch();\napi.get('/posts/', response => console.log(response))"]},{"cmd":"yarn add fetch-class","imports":[]},{"cmd":"pnpm add fetch-class","imports":[]}],"homepage":"https://github.com/NZME/fetch-class#readme","github":"git://github.com/NZME/fetch-class","docs":null,"changelog":null,"pypi":null,"npm":"fetch-class","openapi_spec":null,"status_page":null,"smithery":null,"compatibility":null}